aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorZoltan HERPAI <wigyori@uid0.hu>2014-01-21 14:43:50 +0000
committerZoltan HERPAI <wigyori@uid0.hu>2014-01-21 14:43:50 +0000
commit784084850a00d1b66256e0debb3227ee284ff71e (patch)
treeb14e891ddf337addd4040b13fb6c35f6223a4c01 /target/linux
parent6e1ec287bf8b592c54debf5929b85198e29e7f65 (diff)
downloadupstream-784084850a00d1b66256e0debb3227ee284ff71e.tar.gz
upstream-784084850a00d1b66256e0debb3227ee284ff71e.tar.bz2
upstream-784084850a00d1b66256e0debb3227ee284ff71e.zip
modules: swconfig.c: update the error path on 3.13, and behave nicely with return
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39360 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/generic/files/drivers/net/phy/swconfig.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/swconfig.c b/target/linux/generic/files/drivers/net/phy/swconfig.c
index c30deb9fd1..c043ee4649 100644
--- 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 unregister;
+ return err;
#endif
+ return 0;
unregister:
genl_unregister_family(&switch_fam);