summaryrefslogtreecommitdiffstats
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
commitf3c07b8621ad7b3d037b34701c9e3c43be072ff8 (patch)
tree321c0731e895c547a7cfc6ca3e540303c1d90d66 /target/linux
parent4d26250db14675a693b1c3620749c68c2db669c2 (diff)
downloadmaster-31e0f0ae-f3c07b8621ad7b3d037b34701c9e3c43be072ff8.tar.gz
master-31e0f0ae-f3c07b8621ad7b3d037b34701c9e3c43be072ff8.tar.bz2
master-31e0f0ae-f3c07b8621ad7b3d037b34701c9e3c43be072ff8.zip
modules: swconfig.c: update the error path on 3.13, and behave nicely with return
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu> SVN-Revision: 39360
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);