mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-01-01 03:42:37 +00:00
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
This commit is contained in:
parent
4d26250db1
commit
f3c07b8621
@ -1121,13 +1121,12 @@ swconfig_init(void)
|
|||||||
if (err)
|
if (err)
|
||||||
goto unregister;
|
goto unregister;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
|
||||||
#else
|
#else
|
||||||
err = genl_register_family_with_ops(&switch_fam, swconfig_ops);
|
err = genl_register_family_with_ops(&switch_fam, swconfig_ops);
|
||||||
if (err)
|
if (err)
|
||||||
goto unregister;
|
return err;
|
||||||
#endif
|
#endif
|
||||||
|
return 0;
|
||||||
|
|
||||||
unregister:
|
unregister:
|
||||||
genl_unregister_family(&switch_fam);
|
genl_unregister_family(&switch_fam);
|
||||||
|
Loading…
Reference in New Issue
Block a user