summaryrefslogtreecommitdiffstats
path: root/drivers/net/pci-skeleton.c
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2007-03-16 17:00:21 -0500
committerJeff Garzik <jeff@garzik.org>2007-03-23 01:48:33 -0400
commit5c4851ccb6b12ff29e28b84e7515a18006b19fdf (patch)
tree260e2b2f4fde9c1a33748d5adae7b3bfdcbdbac3 /drivers/net/pci-skeleton.c
parent9cbe330f1fbbc8de15a5914aa6e91d89eb9daac4 (diff)
downloadop-kernel-dev-5c4851ccb6b12ff29e28b84e7515a18006b19fdf.zip
op-kernel-dev-5c4851ccb6b12ff29e28b84e7515a18006b19fdf.tar.gz
Fix return code in pci-skeleton.c
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>
Diffstat (limited to 'drivers/net/pci-skeleton.c')
-rw-r--r--drivers/net/pci-skeleton.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/pci-skeleton.c b/drivers/net/pci-skeleton.c
index 00ca0fd..6ca4e4f 100644
--- a/drivers/net/pci-skeleton.c
+++ b/drivers/net/pci-skeleton.c
@@ -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");
OpenPOWER on IntegriCloud