提交 0d63cbb5 编写于 作者: M Michał Mirosław 提交者: David S. Miller

wireless: Use genl_register_family_with_ops()

Use genl_register_family_with_ops() instead of a copy.
Signed-off-by: NMichał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 7ae740df
......@@ -3912,18 +3912,13 @@ void nl80211_send_beacon_hint_event(struct wiphy *wiphy,
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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册