]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
rtw88: 8822c: fix boolreturn.cocci warnings
authorYan-Hsuan Chuang <yhchuang@realtek.com>
Mon, 16 Sep 2019 02:41:40 +0000 (10:41 +0800)
committerSeth Forshee <seth.forshee@canonical.com>
Fri, 20 Mar 2020 21:31:23 +0000 (16:31 -0500)
commit9ab350f23eda112085a7c39907640bb70d5cab9a
tree15151994d53aa7efb46dffb3d3a2c7456f8cb4b7
parent1545c3c9d9cc6f4480bc41d8a1b9df43438d2a89
rtw88: 8822c: fix boolreturn.cocci warnings

BugLink: https://bugs.launchpad.net/bugs/1780590
drivers/net/wireless/realtek/rtw88/rtw8822c.c:2606:9-10: WARNING: return
of 0/1 in function 'rtw8822c_dpk_coef_iq_check' with return type bool

Return statements in functions returning bool should use true/false
instead of 1/0.
Generated by: scripts/coccinelle/misc/boolreturn.cocci

Fixes: 5227c2ee453d ("rtw88: 8822c: add SW DPK support")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
(cherry picked from commit 0d32f5d93bbaeb57b607cb5cb1c67626d5754905)
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/net/wireless/realtek/rtw88/rtw8822c.c