sfxge(4): fix error code usage
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. Submitted by: Andy Moreton <amoreton at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D18069
This commit is contained in:
parent
8d2b3bd70e
commit
56dc042300
@ -140,7 +140,7 @@ efx_mcdi_fini_rxq(
|
||||
|
||||
efx_mcdi_execute_quiet(enp, &req);
|
||||
|
||||
if ((req.emr_rc != 0) && (req.emr_rc != MC_CMD_ERR_EALREADY)) {
|
||||
if ((req.emr_rc != 0) && (req.emr_rc != EALREADY)) {
|
||||
rc = req.emr_rc;
|
||||
goto fail1;
|
||||
}
|
||||
|
@ -151,7 +151,7 @@ efx_mcdi_fini_txq(
|
||||
|
||||
efx_mcdi_execute_quiet(enp, &req);
|
||||
|
||||
if ((req.emr_rc != 0) && (req.emr_rc != MC_CMD_ERR_EALREADY)) {
|
||||
if ((req.emr_rc != 0) && (req.emr_rc != EALREADY)) {
|
||||
rc = req.emr_rc;
|
||||
goto fail1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user