Re: [PATCH] net: phy: dp83867: fix simple_return.cocci warnings
From: David Miller
Date: Mon Jul 27 2015 - 03:59:40 EST
From: kbuild test robot <fengguang.wu@xxxxxxxxx>
Date: Fri, 24 Jul 2015 14:16:10 +0800
> drivers/net/phy/dp83867.c:126:1-4: WARNING: end returns can be simpified
> drivers/net/phy/dp83867.c:74:5-8: WARNING: end returns can be simpified if tested value is negative or 0
>
> Simplify a trivial if-return sequence. Possibly combine with a
> preceding function call.
>
> Generated by: scripts/coccinelle/misc/simple_return.cocci
>
> CC: Dan Murphy <dmurphy@xxxxxx>
> Signed-off-by: Fengguang Wu <fengguang.wu@xxxxxxxxx>
Applied.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/