Commit 8b72ff64 authored by Alan Cox's avatar Alan Cox Committed by David S. Miller

wanmain: comparing array with NULL

gcc really should warn about these !
Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c66b9b7d
...@@ -602,14 +602,10 @@ static int wanrouter_device_new_if(struct wan_device *wandev, ...@@ -602,14 +602,10 @@ static int wanrouter_device_new_if(struct wan_device *wandev,
* successfully, add it to the interface list. * successfully, add it to the interface list.
*/ */
if (dev->name == NULL) { #ifdef WANDEBUG
err = -EINVAL;
} else {
#ifdef WANDEBUG
printk(KERN_INFO "%s: registering interface %s...\n", printk(KERN_INFO "%s: registering interface %s...\n",
wanrouter_modname, dev->name); wanrouter_modname, dev->name);
#endif #endif
err = register_netdev(dev); err = register_netdev(dev);
if (!err) { if (!err) {
...@@ -632,7 +628,6 @@ static int wanrouter_device_new_if(struct wan_device *wandev, ...@@ -632,7 +628,6 @@ static int wanrouter_device_new_if(struct wan_device *wandev,
err = 0; /* done !!! */ err = 0; /* done !!! */
goto out; goto out;
} }
}
if (wandev->del_if) if (wandev->del_if)
wandev->del_if(wandev, dev); wandev->del_if(wandev, dev);
free_netdev(dev); free_netdev(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment