summaryrefslogtreecommitdiffstats
path: root/net/mac80211/main.c
diff options
context:
space:
mode:
authorZhao, Gang2014-04-21 06:53:05 +0200
committerJohannes Berg2014-04-25 17:34:25 +0200
commit8bd811aa6c407a8a4712d7142fb9909f1b2a5fa4 (patch)
tree1a0c928d6028ee89be50404c1fbb5cf072e386d1 /net/mac80211/main.c
parentcfg80211: change return value of notifier function (diff)
downloadkernel-qcow2-linux-8bd811aa6c407a8a4712d7142fb9909f1b2a5fa4.tar.gz
kernel-qcow2-linux-8bd811aa6c407a8a4712d7142fb9909f1b2a5fa4.tar.xz
kernel-qcow2-linux-8bd811aa6c407a8a4712d7142fb9909f1b2a5fa4.zip
mac80211: 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: Zhao, Gang <gamerh2o@gmail.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/main.c')
-rw-r--r--net/mac80211/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index 5854699a9082..69175f1539b7 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c
@@ -338,7 +338,7 @@ static int ieee80211_ifa_changed(struct notifier_block *nb,
sdata_unlock(sdata);
- return NOTIFY_DONE;
+ return NOTIFY_OK;
}
#endif
@@ -369,7 +369,7 @@ static int ieee80211_ifa6_changed(struct notifier_block *nb,
drv_ipv6_addr_change(local, sdata, idev);
- return NOTIFY_DONE;
+ return NOTIFY_OK;
}
#endif