Re: [PATCH] ssb: fix boolreturn.cocci warning

From: Kalle Valo
Date: Tue Feb 01 2022 - 07:26:14 EST


davidcomponentone@xxxxxxxxx wrote:

> From: Yang Guang <yang.guang5@xxxxxxxxxx>
>
> The coccinelle report
> ./include/linux/ssb/ssb_driver_gige.h:98:8-9:
> WARNING: return of 0/1 in function
> 'ssb_gige_must_flush_posted_writes' with return type bool
>
> Return statements in functions returning bool should use true/false
> instead of 1/0.
>
> Reported-by: Zeal Robot <zealci@xxxxxxxxxx>
> Signed-off-by: Yang Guang <yang.guang5@xxxxxxxxxx>
> Signed-off-by: David Yang <davidcomponentone@xxxxxxxxx>

Patch applied to wireless-next.git, thanks.

6d3ac94bae21 ssb: fix boolreturn.cocci warning

--
https://patchwork.kernel.org/project/linux-wireless/patch/fa4f1fa737e715eb62a85229ac5f12bae21145cf.1642065490.git.davidcomponentone@xxxxxxxxx/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches