Re: [PATCH linux-next] scripts/dtc/util: fix boolreturn.cocci warnings

From: Rob Herring
Date: Tue Aug 24 2021 - 08:16:43 EST


On Tue, Aug 24, 2021 at 1:45 AM CGEL <cgel.zte@xxxxxxxxx> wrote:
>
> From: Jing Yangyang <jing.yangyang@xxxxxxxxxx>
>
> 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@xxxxxxxxxx>
> Signed-off-by: Jing Yangyang <jing.yangyang@xxxxxxxxxx>
> ---
> scripts/dtc/util.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)

scripts/dtc/ is synced from upstream dtc, so if you want to make any
changes you need to submit patches against upstream and to the dtc
list.

Rob