提交 c14c5d99 编写于 作者: V Vladimir Kondratiev 提交者: John W. Linville

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: NVladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 af31cb5a
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册