summaryrefslogtreecommitdiff
path: root/target/linux/generic/files/drivers/net/phy
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/generic/files/drivers/net/phy')
-rw-r--r--target/linux/generic/files/drivers/net/phy/swconfig.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/swconfig.c b/target/linux/generic/files/drivers/net/phy/swconfig.c
index a47af3c..4bfe64f 100644
--- a/target/linux/generic/files/drivers/net/phy/swconfig.c
+++ b/target/linux/generic/files/drivers/net/phy/swconfig.c
@@ -1172,14 +1172,9 @@ EXPORT_SYMBOL_GPL(unregister_switch);
static int __init
swconfig_init(void)
{
- int err;
-
INIT_LIST_HEAD(&swdevs);
- err = genl_register_family_with_ops(&switch_fam, swconfig_ops);
- if (err)
- return err;
- return 0;
+ return genl_register_family_with_ops(&switch_fam, swconfig_ops);
}
static void __exit