Skip to content

Commit

Permalink
wil6210: fix smatch warning in wil_cfg80211_get_station()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vladimir Kondratiev authored and John W. Linville committed Mar 3, 2014
1 parent af31cb5 commit c14c5d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/ath/wil6210/cfg80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit c14c5d9

Please sign in to comment.