Commit 5c4851cc authored by Anton Blanchard's avatar Anton Blanchard Committed by Jeff Garzik

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: default avatarAnton Blanchard <anton@samba.org>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent 9cbe330f
......@@ -710,8 +710,8 @@ static int __devinit netdrv_init_board (struct pci_dev *pdev,
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");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment