aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/generic')
-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);