Commit 7c372bac authored by Brett Creeley's avatar Brett Creeley Committed by Paolo Abeni
Browse files

ionic: Translate IONIC_RC_ENOSUPP to EOPNOTSUPP



Instead of reporting -EINVAL when IONIC_RC_ENOSUPP is returned use
the -EOPNOTSUPP value. This aligns better since the FW only returns
IONIC_RC_ENOSUPP when operations aren't supported not when invalid
values are used.

Signed-off-by: default avatarBrett Creeley <brett.creeley@amd.com>
Signed-off-by: default avatarShannon Nelson <shannon.nelson@amd.com>
Reviewed-by: default avatarJacob Keller <jacob.e.keller@intel.com>
Reviewed-by: default avatarKalesh AP <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 33ce1d41
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -81,8 +81,9 @@ static int ionic_error_to_errno(enum ionic_status_code code)
	case IONIC_RC_EQTYPE:
	case IONIC_RC_EQID:
	case IONIC_RC_EINVAL:
	case IONIC_RC_ENOSUPP:
		return -EINVAL;
	case IONIC_RC_ENOSUPP:
		return -EOPNOTSUPP;
	case IONIC_RC_EPERM:
		return -EPERM;
	case IONIC_RC_ENOENT: