summaryrefslogtreecommitdiffstats
path: root/drivers/net/pci-skeleton.c
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2007-03-16 23:00:21 +0100
committerJeff Garzik <jeff@garzik.org>2007-03-23 06:48:33 +0100
commit5c4851ccb6b12ff29e28b84e7515a18006b19fdf (patch)
tree260e2b2f4fde9c1a33748d5adae7b3bfdcbdbac3 /drivers/net/pci-skeleton.c
parentskge: use per-port phy locking (diff)
downloadlinux-5c4851ccb6b12ff29e28b84e7515a18006b19fdf.tar.xz
linux-5c4851ccb6b12ff29e28b84e7515a18006b19fdf.zip
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 00ca0fdb837b..6ca4e4fa6b88 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");