diff options
author | Zoltan Herpai <wigyori@uid0.hu> | 2014-01-21 14:43:50 +0000 |
---|---|---|
committer | Zoltan Herpai <wigyori@uid0.hu> | 2014-01-21 14:43:50 +0000 |
commit | f3c07b8621ad7b3d037b34701c9e3c43be072ff8 (patch) | |
tree | 321c0731e895c547a7cfc6ca3e540303c1d90d66 /target/linux/generic/files | |
parent | 4d26250db14675a693b1c3620749c68c2db669c2 (diff) | |
download | master-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/generic/files')
-rw-r--r-- | target/linux/generic/files/drivers/net/phy/swconfig.c | 5 |
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); |