wil6210: fix smatch warning in wil_cfg80211_get_station()
authorVladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Sun, 2 Mar 2014 09:20:51 +0000 (11:20 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 3 Mar 2014 20:35:56 +0000 (15:35 -0500)
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>
drivers/net/wireless/ath/wil6210/cfg80211.c

index a4da064dbbc4b5c33b114dd251edcdd4b887c5b2..74393035706168e3cae5eebf7ed3f9561c928b35 100644 (file)
@@ -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);