summaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorLuciano Coelho <luciano.coelho@nokia.com>2009-11-24 00:22:15 +0300
committerJohn W. Linville <linville@tuxdriver.com>2009-11-28 23:04:29 +0300
commit17d7265c7582af77357bd31884cef26f9f802313 (patch)
tree8403c70ab2921f4aed1b1a5fa0adba6d964ef85f /scripts/patch-kernel
parent03442a33174b1d9f6f8eb8c3c2e8a9cf4b75fffe (diff)
downloadlinux-17d7265c7582af77357bd31884cef26f9f802313.tar.xz
wl1271: fix the inetdev notifier callback return values
The wl1271_dev_notify() was returning 0 or -ENODEV, when it should return NOTIFY_* instead. Now we use NOTIFY_DONE when we didn't handle the event or NOTIFY_OK when we have handled it. For inetdev notifications, it doesn't matter whether we use NOTIFY_DONE or NOTIFY_OK, because it ignores the return value of the call to blocking_notifier_call_chain(). But the notify.h header says that NOTIFY_DONE is "Don't care" and NOTIFY_OK is "Suits me", so that seems to be the right way to do it. Reported-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com> Reviewed-by: Juuso Oikarinen <juuso.oikarinen@nokia.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions