projects
/
15.05
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e1ec28
)
modules: swconfig.c: update the error path on 3.13, and behave nicely with return
author
Zoltan HERPAI
<wigyori@uid0.hu>
Tue, 21 Jan 2014 14:43:50 +0000
(14:43 +0000)
committer
Zoltan HERPAI
<wigyori@uid0.hu>
Tue, 21 Jan 2014 14:43:50 +0000
(14:43 +0000)
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39360
3c298f89
-4303-0410-b956-
a3cf2f4a3e73
target/linux/generic/files/drivers/net/phy/swconfig.c
patch
|
blob
|
history
diff --git
a/target/linux/generic/files/drivers/net/phy/swconfig.c
b/target/linux/generic/files/drivers/net/phy/swconfig.c
index
c30deb9
..
c043ee4
100644
(file)
--- a/
target/linux/generic/files/drivers/net/phy/swconfig.c
+++ b/
target/linux/generic/files/drivers/net/phy/swconfig.c
@@
-1121,13
+1121,12
@@
swconfig_init(void)
if (err)
goto unregister;
}
-
- return 0;
#else
err = genl_register_family_with_ops(&switch_fam, swconfig_ops);
if (err)
-
goto unregiste
r;
+
return er
r;
#endif
+ return 0;
unregister:
genl_unregister_family(&switch_fam);