diff options
author | Jani Nikula <jani.nikula@intel.com> | 2021-09-30 14:24:36 +0300 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2021-10-01 11:45:57 +0300 |
commit | 7d8de8cabbba77eb35cdf075ab76a4b994a926ec (patch) | |
tree | 32c649be3e22061d00e3a44c9323acf58feffc25 /drivers/gpu/drm/i915/intel_dram.c | |
parent | 5e9a0200dad83f8620af04c733cd7f93bb0efb8c (diff) | |
download | linux-7d8de8cabbba77eb35cdf075ab76a4b994a926ec.tar.xz |
drm/i915/dram: return -EINVAL instead of -1
Avoid using the incidental -EPERM.
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/e2f79220ed2558f615c051e2533275a5dae1a04f.1633000838.git.jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/intel_dram.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_dram.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/intel_dram.c b/drivers/gpu/drm/i915/intel_dram.c index 91866520c173..30a0cab5eff4 100644 --- a/drivers/gpu/drm/i915/intel_dram.c +++ b/drivers/gpu/drm/i915/intel_dram.c @@ -444,7 +444,7 @@ static int icl_pcode_read_mem_global_info(struct drm_i915_private *dev_priv) break; default: MISSING_CASE(val & 0xf); - return -1; + return -EINVAL; } } else { switch (val & 0xf) { @@ -462,7 +462,7 @@ static int icl_pcode_read_mem_global_info(struct drm_i915_private *dev_priv) break; default: MISSING_CASE(val & 0xf); - return -1; + return -EINVAL; } } |