octeontx2-pf: Fix an IS_ERR() vs NULL bug
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 31 Jan 2020 05:02:41 +0000 (08:02 +0300)
committerJakub Kicinski <kuba@kernel.org>
Sat, 1 Feb 2020 19:32:43 +0000 (11:32 -0800)
commit08ff78182fa170dbbe1ebf31e798e9340d6802a5
tree13a9bc3478489b2f40685745aebb4777919e27cb
parent784f8344de750a41344f4bbbebb8507a730fc99c
octeontx2-pf: Fix an IS_ERR() vs NULL bug

The otx2_mbox_get_rsp() function never returns NULL, it returns error
pointers on error.

Fixes: 34bfe0ebedb7 ("octeontx2-pf: MTU, MAC and RX mode config support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c