wifi: rtw89: use readable return 0 in rtw89_mac_cfg_ppdu_status()
authorPing-Ke Shih <pkshih@realtek.com>
Mon, 13 Feb 2023 09:13:28 +0000 (17:13 +0800)
committerKalle Valo <kvalo@kernel.org>
Wed, 15 Feb 2023 07:50:59 +0000 (09:50 +0200)
commit210871887208d1098d65b9bb597e7f9aa1c66900
treeda8bff3d81c54db3492c3f24c5f15188c3c52bb2
parent462c8db6a01160836c68e262d25566f2447148d9
wifi: rtw89: use readable return 0 in rtw89_mac_cfg_ppdu_status()

For normal (successful) flow, it must return 0. The original code uses
'return ret', and then we need to backward reference to initial value to
know 'ret = 0'. Changing them to 'return 0', because it will be more
readable and intuitive. This patch doesn't change logic at all.

Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <error27@gmail.com>
Link: https://lore.kernel.org/r/202302101023.ctlih5q0-lkp@intel.com/
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230213091328.25481-1-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/mac.c