diff options
author | Anton Blanchard <anton@samba.org> | 2007-03-16 17:00:21 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-03-23 01:48:33 -0400 |
commit | 5c4851ccb6b12ff29e28b84e7515a18006b19fdf (patch) | |
tree | 260e2b2f4fde9c1a33748d5adae7b3bfdcbdbac3 /drivers/net | |
parent | 9cbe330f1fbbc8de15a5914aa6e91d89eb9daac4 (diff) | |
download | linux-5c4851ccb6b12ff29e28b84e7515a18006b19fdf.tar.gz linux-5c4851ccb6b12ff29e28b84e7515a18006b19fdf.tar.bz2 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')
-rw-r--r-- | drivers/net/pci-skeleton.c | 4 |
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"); |