common/cnxk: return saner error codes
authorTomasz Duszynski <tduszynski@marvell.com>
Mon, 26 Jul 2021 13:58:10 +0000 (08:58 -0500)
committerJerin Jacob <jerinj@marvell.com>
Tue, 28 Sep 2021 10:09:14 +0000 (12:09 +0200)
commitb816b6f44851102963e792ecbbe54fa6f12fd49c
tree15b0af6507181171abc21900ce7df12e493e70e2
parent4435371b8fb1c001171682a189ef87c1118c2542
common/cnxk: return saner error codes

If particular LMAC does not exist then it's saner to return ENODEV
instead of EINVAL.

Signed-off-by: Tomasz Duszynski <tduszynski@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
drivers/common/cnxk/roc_bphy_cgx.c