Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Jing Yangyang and committed by
Kalle Valo
8d4be124 ebe9e651

+1 -1
+1 -1
include/linux/ssb/ssb_driver_extif.h
··· 197 197 198 198 static inline bool ssb_extif_available(struct ssb_extif *extif) 199 199 { 200 - return 0; 200 + return false; 201 201 } 202 202 203 203 static inline