Re: [PATCH] net: ethernet: ti: Use ERR_CAST instead of ERR_PTR(PTR_ERR())

From: David Miller
Date: Mon May 14 2018 - 16:28:21 EST


From: Hernán Gonzalez <hernan@xxxxxxxxxxxxxxxxxxxx>
Date: Sun, 13 May 2018 20:33:49 -0300

> Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...)).
>
> drivers/net/ethernet/ti/cpts.c:567:9-16: WARNING: ERR_CAST can be used with cpts->refclk
> Generated by: scripts/coccinelle/api/err_cast.cocci
>
> Signed-off-by: Hernán Gonzalez <hernan@xxxxxxxxxxxxxxxxxxxx>

Applied to net-next, thank you.