]> err.no Git - linux-2.6/commitdiff
Fix return code in pci-skeleton.c
authorAnton Blanchard <anton@samba.org>
Fri, 16 Mar 2007 22:00:21 +0000 (17:00 -0500)
committerJeff Garzik <jeff@garzik.org>
Fri, 23 Mar 2007 05:48:33 +0000 (01:48 -0400)
We assign the return value of register_netdev to i, but return rc later
on. Fix it.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/pci-skeleton.c

index 00ca0fdb837b6aeb6e6318fb5417e6f3320943f6..6ca4e4fa6b880011b01783284a590cc0129755bc 100644 (file)
@@ -710,8 +710,8 @@ match:
                tp->chipset,
                rtl_chip_info[tp->chipset].name);
 
-       i = register_netdev (dev);
-       if (i)
+       rc = register_netdev (dev);
+       if (rc)
                goto err_out_unmap;
 
        DPRINTK ("EXIT, returning 0\n");