提交 6784c7db 编写于 作者: Z Zhao, Gang 提交者: Johannes Berg

cfg80211: change return value of notifier function

Return NOTIFY_DONE if we don't care this time's notification, return
NOTIFY_OK if we successfully handled this time's notification. That's
the formal way to do it.
Signed-off-by: NZhao, Gang <gamerh2o@gmail.com>
Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
上级 f26cbf40
......@@ -1002,9 +1002,11 @@ static int cfg80211_netdev_notifier_call(struct notifier_block *nb,
if (rfkill_blocked(rdev->rfkill))
return notifier_from_errno(-ERFKILL);
break;
default:
return NOTIFY_DONE;
}
return NOTIFY_DONE;
return NOTIFY_OK;
}
static struct notifier_block cfg80211_netdev_notifier = {
......
......@@ -11672,7 +11672,7 @@ static int nl80211_netlink_notify(struct notifier_block * nb,
rcu_read_unlock();
return NOTIFY_DONE;
return NOTIFY_OK;
}
static struct notifier_block nl80211_netlink_notifier = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册