net/sfc/base: fix error code usage in common code
authorAndy Moreton <amoreton@solarflare.com>
Sat, 27 May 2017 07:55:30 +0000 (08:55 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 12 Jun 2017 09:41:27 +0000 (10:41 +0100)
commit7236d2bfe0acc48330e3c2a3dfac4ada9a792cd8
tree36be50414bc94ffe18c5875887f888dfc0768a3c
parentee606d92789e6dc7d27d9b15b3ef6dbd1f63b819
net/sfc/base: fix error code usage in common code

MCDI results returned in req.emr_rc have already been translated
from MC_CMD_ERR_* to errno names, so using an MC_CMD_ERR_* value
is incorrect.

Fixes: e7cd430c864f ("net/sfc/base: import SFN7xxx family support")
Cc: stable@dpdk.org
Signed-off-by: Andy Moreton <amoreton@solarflare.com>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
drivers/net/sfc/base/ef10_rx.c
drivers/net/sfc/base/ef10_tx.c