mirror of
https://github.com/torvalds/linux.git
synced 2026-05-22 06:01:53 +02:00
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: Brett Creeley <brett.creeley@amd.com> Signed-off-by: Shannon Nelson <shannon.nelson@amd.com> Reviewed-by: Jacob Keller <jacob.e.keller@intel.com> Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
parent
33ce1d41c1
commit
7c372bac12
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user