drm/dp_mst: Refactor drm_dp_mst_handle_down_rep()
authorLyude Paul <lyude@redhat.com>
Tue, 3 Sep 2019 20:45:51 +0000 (16:45 -0400)
committerLyude Paul <lyude@redhat.com>
Tue, 3 Sep 2019 23:37:00 +0000 (19:37 -0400)
commit8b1e589d138c8ad82a3424a9f3df8a74a4a2837a
tree4789611f73e6e15c5039cfc43653d27627cb48a2
parenta29d881875fc27c3ffe56af242adf38448b3d857
drm/dp_mst: Refactor drm_dp_mst_handle_down_rep()

* Remove the big ugly have_eomt conditional
* Store &mgr->down_rep_recv.initial_hdr in a var to make line wrapping
  easier
* Remove duplicate memset() calls
* Actually wrap lines

Cc: Juston Li <juston.li@intel.com>
Cc: Imre Deak <imre.deak@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Harry Wentland <hwentlan@amd.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Lyude Paul <lyude@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190903204645.25487-14-lyude@redhat.com
drivers/gpu/drm/drm_dp_mst_topology.c