From: Vladimir Kondratiev Date: Sun, 2 Mar 2014 09:20:51 +0000 (+0200) Subject: wil6210: fix smatch warning in wil_cfg80211_get_station() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c14c5d99a453af6b86f15aca8fe9005b2b8f3b26;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git wil6210: fix smatch warning in wil_cfg80211_get_station() Smatch suggests to propagate error code from wil_find_cid(), and, indeed, it is a good idea. Signed-off-by: Vladimir Kondratiev Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/ath/wil6210/cfg80211.c b/drivers/net/wireless/ath/wil6210/cfg80211.c index a4da064dbbc4..743930357061 100644 --- a/drivers/net/wireless/ath/wil6210/cfg80211.c +++ b/drivers/net/wireless/ath/wil6210/cfg80211.c @@ -181,7 +181,7 @@ static int wil_cfg80211_get_station(struct wiphy *wiphy, wil_info(wil, "%s(%pM) CID %d\n", __func__, mac, cid); if (cid < 0) - return -ENOENT; + return cid; rc = wil_cid_fill_sinfo(wil, cid, sinfo);