Re: [PATCH] net: dsa: mv88e6xxx: fix boolreturn.cocci warnings

From: David Miller
Date: Wed Mar 07 2018 - 13:37:21 EST


From: kbuild test robot <fengguang.wu@xxxxxxxxx>
Date: Tue, 6 Mar 2018 23:54:07 +0800

> From: Fengguang Wu <fengguang.wu@xxxxxxxxx>
>
> drivers/net/dsa/mv88e6xxx/serdes.c:66:9-10: WARNING: return of 0/1 in function 'mv88e6352_port_has_serdes' 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
>
> Fixes: eb755c3f6b7d ("net: dsa: mv88e6xxx: Add helper to determining if port has SERDES")
> CC: Andrew Lunn <andrew@xxxxxxx>
> Signed-off-by: Fengguang Wu <fengguang.wu@xxxxxxxxx>

Applied to net-next.