summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorVladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>2014-03-02 09:20:51 (GMT)
committerJohn W. Linville <linville@tuxdriver.com>2014-03-03 20:35:56 (GMT)
commitc14c5d99a453af6b86f15aca8fe9005b2b8f3b26 (patch)
tree0dd2a7d327a97d5a5cda9bce853bbca83d3a5a12 /drivers
parentaf31cb5a57084146aae5c01df6b85f54067528aa (diff)
downloadlinux-c14c5d99a453af6b86f15aca8fe9005b2b8f3b26.tar.xz
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 <qca_vkondrat@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/ath/wil6210/cfg80211.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/wil6210/cfg80211.c b/drivers/net/wireless/ath/wil6210/cfg80211.c
index a4da064..7439303 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);