From: Johannes Berg Date: Fri, 8 Jan 2010 18:01:07 +0000 (+0100) Subject: mac80211: fix return from ieee80211_assoc_success X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=90be561b119a9e5439733f09cc70bd4ce9ec8022;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git mac80211: fix return from ieee80211_assoc_success sparse pointed out that I made a mistake converting the return value of ieee80211_assoc_success to bool, this place should return false instead of one of the enum values (which would be true). Signed-off-by: Johannes Berg Signed-off-by: John W. Linville --- diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 0336dbb45ac5..8045fd63616b 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -1098,7 +1098,7 @@ static bool ieee80211_assoc_success(struct ieee80211_work *wk, if (err) { printk(KERN_DEBUG "%s: failed to insert STA entry for" " the AP (error %d)\n", sdata->name, err); - return RX_MGMT_CFG80211_ASSOC_ERROR; + return false; } if (elems.wmm_param)