diff options
| author | Jani Nikula <jani.nikula@intel.com> | 2023-12-19 12:47:46 +0200 |
|---|---|---|
| committer | Jani Nikula <jani.nikula@intel.com> | 2023-12-19 17:30:02 +0200 |
| commit | 547a720e8e8f1b2c93f29a5dbe7315e285eb73a6 (patch) | |
| tree | 3566f2754783825319038aad48a5317a60fe3071 /tools/perf/scripts/python | |
| parent | drm/i915/hdcp: unify connector logging format (diff) | |
| download | linux-547a720e8e8f1b2c93f29a5dbe7315e285eb73a6.tar.gz linux-547a720e8e8f1b2c93f29a5dbe7315e285eb73a6.zip | |
drm/i915/hdcp: fix intel_hdcp_get_repeater_ctl() error return value
intel_hdcp_get_repeater_ctl() is supposed to return unsigned register
contents. Returning negative error values is unexpected, and none of the
callers check for that.
Sort of fix the error cases by returning 0. I don't think we should hit
these cases anyway, and using 0 for the registers is safer than
0xffffffea (-EINVAL).
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231219104746.1065431-2-jani.nikula@intel.com
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
