rtw89: fix return value in hfc_pub_cfg_chk
authorKevin Lo <kevlo@kevlo.org>
Thu, 21 Oct 2021 06:32:27 +0000 (14:32 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 27 Oct 2021 07:37:01 +0000 (10:37 +0300)
commitc6477cb237048725922f6a786f68b5232abb418f
tree8507c15a3f57382760710792cad9678766d8e426
parent090f8a2f7b38f3a1dcf202437e5307761e8e4625
rtw89: fix return value in hfc_pub_cfg_chk

It seems to me when pub_cfg->grp0 + pub_cfg->grp1 != pub_cfg->pub_max is true,
it should return -EFAULT rather than 0.  Otherwise, the function doesn't need
to exist.

Signed-off-by: Kevin Lo <kevlo@kevlo.org>
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/YXEJey8lKksAZif4@ns.kevlo.org
drivers/net/wireless/realtek/rtw89/mac.c