Skip to content
Snippets Groups Projects
Commit 5235ba39 authored by wigyori's avatar wigyori
Browse files

modules: swconfig.c: update the error path on 3.13, and behave nicely with return


Signed-off-by: default avatarZoltan HERPAI <wigyori@uid0.hu>



git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39360 3c298f89-4303-0410-b956-a3cf2f4a3e73
parent 1f6eae95
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment