Skip to content

Commit

Permalink
ssb: fix boolreturn.cocci warning
Browse files Browse the repository at this point in the history
./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
  • Loading branch information
Jing Yangyang authored and Kalle Valo committed Aug 29, 2021
1 parent ebe9e65 commit 8d4be12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/ssb/ssb_driver_extif.h
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ struct ssb_extif {

static inline bool ssb_extif_available(struct ssb_extif *extif)
{
return 0;
return false;
}

static inline
Expand Down

0 comments on commit 8d4be12

Please sign in to comment.