Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c14c5d99 authored by Vladimir Kondratiev's avatar Vladimir Kondratiev Committed by John W. Linville
Browse files

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: default avatarVladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent af31cb5a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);