Re: [PATCH linux-next] include:libata: fix boolreturn.cocci warnings

From: Jens Axboe
Date: Tue Aug 24 2021 - 12:11:54 EST


On 8/24/21 12:07 AM, CGEL wrote:
> From: Jing Yangyang <jing.yangyang@xxxxxxxxxx>
>
> ./include/linux/libata.h:1462:8-9:WARNING: return of 0/1 in function
> 'ata_is_host_link' with return type bool
>
> Return statements in functions returning bool should use true/false
> instead of 1/0.

Applied, thanks.

--
Jens Axboe