drm/dp_mst: Sanitize error return during payload addition
authorImre Deak <imre.deak@intel.com>
Wed, 13 Sep 2023 22:32:16 +0000 (01:32 +0300)
committerImre Deak <imre.deak@intel.com>
Mon, 18 Sep 2023 13:38:14 +0000 (16:38 +0300)
commit8bde4442acbba41300cc7fd8e48122c70963e041
tree91530fb43b88e5273f58b72594fbddc5950a01ce
parent47fadb03bdfd26a7a6d110e1ee60d472b4881b6e
drm/dp_mst: Sanitize error return during payload addition

Return an error during payload addition if the payload port isn't
found. This shouldn't change the behavior since only the i915 driver
checks the return value, printing an error message in case of a failure.

While at it simplify the control flow.

Cc: Wayne Lin <Wayne.Lin@amd.com>
Cc: Lyude Paul <lyude@redhat.com>
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230913223218.540365-2-imre.deak@intel.com
drivers/gpu/drm/display/drm_dp_mst_topology.c