mirror of https://gitee.com/openkylin/linux.git
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:
parent
9cbe330f1f
commit
5c4851ccb6
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue