From f3c07b8621ad7b3d037b34701c9e3c43be072ff8 Mon Sep 17 00:00:00 2001 From: Zoltan Herpai Date: Tue, 21 Jan 2014 14:43:50 +0000 Subject: [PATCH] modules: swconfig.c: update the error path on 3.13, and behave nicely with return Signed-off-by: Zoltan HERPAI SVN-Revision: 39360 --- target/linux/generic/files/drivers/net/phy/swconfig.c | 5 ++--- 1 file 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 c30deb9fd10..c043ee46494 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); -- 2.30.2