diff options
author | Jing Yangyang <jing.yangyang@zte.com.cn> | 2021-08-23 23:13:41 -0700 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2021-08-29 14:47:42 +0300 |
commit | 8d4be124062bddbb2bcb887702a0601b790b9a83 (patch) | |
tree | 6ebf22c13f408388f263fb142130a78c67f66023 /include/linux/ssb | |
parent | ebe9e6514b40f8aac7387466b898541b84c4ef1f (diff) | |
download | linux-8d4be124062bddbb2bcb887702a0601b790b9a83.tar.gz linux-8d4be124062bddbb2bcb887702a0601b790b9a83.tar.bz2 linux-8d4be124062bddbb2bcb887702a0601b790b9a83.zip |
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
Diffstat (limited to 'include/linux/ssb')
-rw-r--r-- | include/linux/ssb/ssb_driver_extif.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/ssb/ssb_driver_extif.h b/include/linux/ssb/ssb_driver_extif.h index 3f8bc973d67d..19253bfacd1a 100644 --- a/include/linux/ssb/ssb_driver_extif.h +++ b/include/linux/ssb/ssb_driver_extif.h @@ -197,7 +197,7 @@ struct ssb_extif { static inline bool ssb_extif_available(struct ssb_extif *extif) { - return 0; + return false; } static inline |