]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Flatten intel_dp_check_mst_status() a bit
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 17 Apr 2020 15:27:33 +0000 (18:27 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 20 Apr 2020 18:21:11 +0000 (21:21 +0300)
commit3c0ec2c2d5948356a22c8f1c08a8087b12a303e7
treeb7ade224d1a26ec93ff888a6812fa0d0cddf3bf5
parenteed22a46b979a3ccefd4820a73af167569ad4711
drm/i915: Flatten intel_dp_check_mst_status() a bit

Make intel_dp_check_mst_status() somewhat legible by humans.

Note that the return value of drm_dp_mst_hpd_irq() is always
either 0 or -ENOMEM, and we never did anything with the latter
so we can just ignore the whole thing.

We can also get rid of the direct drm_dp_mst_topology_mgr_set_mst(false)
call since returning -EINVAL causes the caller to do the very same call
for us.

Cc: Lyude Paul <lyude@redhat.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200417152734.464-1-ville.syrjala@linux.intel.com
Reviewed-by: Lyude Paul <lyude@redhat.com>
drivers/gpu/drm/i915/display/intel_dp.c