Commit 0d63cbb5 authored by Michał Mirosław's avatar Michał Mirosław Committed by David S. Miller

wireless: Use genl_register_family_with_ops()

Use genl_register_family_with_ops() instead of a copy.
Signed-off-by: default avatarMichał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7ae740df
......@@ -3912,18 +3912,13 @@ nla_put_failure:
int nl80211_init(void)
{
int err, i;
int err;
err = genl_register_family(&nl80211_fam);
err = genl_register_family_with_ops(&nl80211_fam,
nl80211_ops, ARRAY_SIZE(nl80211_ops));
if (err)
return err;
for (i = 0; i < ARRAY_SIZE(nl80211_ops); i++) {
err = genl_register_ops(&nl80211_fam, &nl80211_ops[i]);
if (err)
goto err_out;
}
err = genl_register_mc_group(&nl80211_fam, &nl80211_config_mcgrp);
if (err)
goto err_out;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment