bluetooth: vflash: fix warning: initialization from incompatible pointer type

This commit is contained in:
黄涛
2011-11-07 14:36:09 +08:00
parent 6dd0c49a3e
commit 5400acb485

View File

@@ -34,11 +34,10 @@ static struct miscdevice vflash_miscdev;
extern char GetSNSectorInfo(char * pbuf);
extern unsigned char wlan_mac_addr[6];
static int vflash_ioctl(struct inode *inode, struct file *file,
static long vflash_ioctl(struct file *file,
unsigned int cmd, unsigned long arg)
{
void __user *argp = (void __user *)arg;
unsigned long n = 0;
DBG("%s---cmd=0x%x---arg=0x%x\n", __FUNCTION__, cmd, arg);
@@ -49,7 +48,7 @@ static int vflash_ioctl(struct inode *inode, struct file *file,
{
case READ_BDADDR_FROM_FLASH:
{
#if CONFIG_WIFI_MAC
#ifdef CONFIG_WIFI_MAC
unsigned char bd_addr[6] = {0};
int i;