]> git.baikalelectronics.ru Git - kernel.git/commit
dpaa2-eth: Use PTR_ERR_OR_ZERO where appropriate
authorIoana Radulescu <ruxandra.radulescu@nxp.com>
Fri, 24 May 2019 15:15:16 +0000 (18:15 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 26 May 2019 20:41:33 +0000 (13:41 -0700)
commit98a8db4ccb58ff38893ebe9f83bb1633a43b58fe
treee7184bf62b4d75b266d6bfd40d2cb985b11c0f8d
parent5eb61788c98bda40d0e567def0364d1ba85e1d3f
dpaa2-eth: Use PTR_ERR_OR_ZERO where appropriate

Use PTR_ERR_OR_ZERO instead of PTR_ERR in cases where
zero is a valid input. Reported by smatch.

Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c