]> git.baikalelectronics.ru Git - kernel.git/commit
ssb: fix boolreturn.cocci warning
authorJing Yangyang <jing.yangyang@zte.com.cn>
Tue, 24 Aug 2021 06:13:41 +0000 (23:13 -0700)
committerKalle Valo <kvalo@codeaurora.org>
Sun, 29 Aug 2021 11:47:42 +0000 (14:47 +0300)
commitd985e6db1c17cb3c64574b6415632c79387511cd
tree6ebf22c13f408388f263fb142130a78c67f66023
parentd62db70bb67c006a47dc200a4efa00d822dc1876
ssb: fix boolreturn.cocci warning

./include/linux/ssb/ssb_driver_extif.h:200:8-9:WARNING: return of 0/1 in
function 'ssb_extif_available' 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

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Jing Yangyang <jing.yangyang@zte.com.cn>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210824061341.59255-1-deng.changcheng@zte.com.cn
include/linux/ssb/ssb_driver_extif.h