]> git.ipfire.org Git - thirdparty/linux.git/commit
wifi: rtw89: 8852bt: Simplify unnecessary if-else conditions in _dpk_onoff()
authorLiao Yuanhong <liaoyuanhong@vivo.com>
Mon, 18 Aug 2025 06:42:19 +0000 (14:42 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Tue, 19 Aug 2025 01:28:15 +0000 (09:28 +0800)
commit33319e8fd7ac2631eef89c770940fa5f96a93063
tree567039467866891f0905d8aa0903090bb5c84d91
parentec0b44736b1d22b763ee94f1aee856f9e793f3fe
wifi: rtw89: 8852bt: Simplify unnecessary if-else conditions in _dpk_onoff()

Some simple if-else logic can be simplified using the ! operator to improve
code readability.

Signed-off-by: Liao Yuanhong <liaoyuanhong@vivo.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20250818064219.448066-1-liaoyuanhong@vivo.com
drivers/net/wireless/realtek/rtw89/rtw8852bt_rfk.c