OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9cbe330
)
Fix return code in pci-skeleton.c
author
Anton Blanchard
<anton@samba.org>
Fri, 16 Mar 2007 22:00:21 +0000
(17:00 -0500)
committer
Jeff Garzik
<jeff@garzik.org>
Fri, 23 Mar 2007 05:48:33 +0000
(
01:48
-0400)
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>
drivers/net/pci-skeleton.c
patch
|
blob
|
history
diff --git
a/drivers/net/pci-skeleton.c
b/drivers/net/pci-skeleton.c
index
00ca0fd
..
6ca4e4f
100644
(file)
--- 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");