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>
This commit is contained in:
Anton Blanchard 2007-03-16 17:00:21 -05:00 committed by Jeff Garzik
parent 9cbe330f1f
commit 5c4851ccb6
1 changed files with 2 additions and 2 deletions

View 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");