Commit d900a3a6 authored by Stephen Hemminger's avatar Stephen Hemminger

[WAN]: Fix register_netdev() return value check in hostess_sv11.c

parent cea645b4
...@@ -337,7 +337,7 @@ static struct sv11_device *sv11_init(int iobase, int irq) ...@@ -337,7 +337,7 @@ static struct sv11_device *sv11_init(int iobase, int irq)
d->neigh_setup = hostess_neigh_setup_dev; d->neigh_setup = hostess_neigh_setup_dev;
d->set_mac_address = NULL; d->set_mac_address = NULL;
if(register_netdev(d)==-1) if(register_netdev(d))
{ {
printk(KERN_ERR "%s: unable to register device.\n", printk(KERN_ERR "%s: unable to register device.\n",
d->name); d->name);
......
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