net: ethernet: ti: Use ERR_CAST instead of ERR_PTR(PTR_ERR())
authorHernán Gonzalez <hernan@vanguardiasur.com.ar>
Sun, 13 May 2018 23:33:49 +0000 (20:33 -0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 May 2018 20:27:59 +0000 (16:27 -0400)
commitbde4c563a93f643cee9854b0d354710e1ff69284
tree3e2d38e59da56c2c1b25d080231730a458d19fa1
parent81c7288b170a59d01427fa33d6591da1dbf59277
net: ethernet: ti: Use ERR_CAST instead of ERR_PTR(PTR_ERR())

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@vanguardiasur.com.ar>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpts.c