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)
commitbd8460fa4de46e9d6177af4fe33bf0763a7af4b7
treee7184bf62b4d75b266d6bfd40d2cb985b11c0f8d
parent5a20a093d965560f632b2ec325f8876918f78165
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