提交 5c4851cc 编写于 作者: A Anton Blanchard 提交者: 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: NAnton Blanchard <anton@samba.org>
Signed-off-by: NJeff Garzik <jeff@garzik.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册