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>
This commit is contained in:
Zhao, Gang
2014-04-21 12:53:05 +08:00
committed by Johannes Berg
parent 6784c7db8d
commit 8bd811aa6c
3 changed files with 8 additions and 9 deletions

View File

@@ -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