rtw89: fix return value check in rtw89_cam_send_sec_key_cmd()
authorYang Yingliang <yangyingliang@huawei.com>
Mon, 18 Oct 2021 03:31:02 +0000 (11:31 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 20 Oct 2021 08:49:13 +0000 (11:49 +0300)
commita04310edcd00d6014126483a2d8cd95b4786db25
treee6d1b1b487712e0c96fc3f7c51420264a7ff1e7e
parent257051a235c17e33782b6e24a4b17f2d7915aaec
rtw89: fix return value check in rtw89_cam_send_sec_key_cmd()

Fix the return value check which testing the wrong variable
in rtw89_cam_send_sec_key_cmd().

Reported-by: Hulk Robot <hulkci@huawei.com>
Fixes: e3ec7017f6a2 ("rtw89: add Realtek 802.11ax driver")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20211018033102.1813058-1-yangyingliang@huawei.com
drivers/net/wireless/realtek/rtw89/cam.c