OSDN Git Service

rtw89: change value assignment style of rtw89_mac_cfg_gnt()
authorPing-Ke Shih <pkshih@realtek.com>
Thu, 17 Mar 2022 05:55:41 +0000 (13:55 +0800)
committerKalle Valo <kvalo@kernel.org>
Thu, 17 Mar 2022 14:21:30 +0000 (16:21 +0200)
commit8001c741e35195fc75ba5ceac43faac5c977abd1
tree9cc6827481dc1e3ba32088d871d7d4ca66fc3eee
parentfeed654178474574a53867ff1a0de0046de8758d
rtw89: change value assignment style of rtw89_mac_cfg_gnt()

Use if() style would be clear than "? :", because the else cases are
always 0. The read val from rtw89_mac_read_lte() isn't used, so remove
this statement.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220317055543.40514-11-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/mac.c