OSDN Git Service

drm/dp_mst: Refactor drm_dp_update_payload_part1()
authorLyude Paul <lyude@redhat.com>
Fri, 14 Dec 2018 01:25:31 +0000 (20:25 -0500)
committerLyude Paul <lyude@redhat.com>
Fri, 14 Dec 2018 20:38:25 +0000 (15:38 -0500)
commit706246c761ddd394e2b02f6dba2357d8eb5a7b5d
tree2e14f9e71c9bed0231706b9f80545dcadb2ec81a
parentfc63668656bdcad7317fbac0ca2b31ae9e81cf74
drm/dp_mst: Refactor drm_dp_update_payload_part1()

This:

- Adds local variables in the first loop, instead of using array indices
  everywhere
- Adds an early continue to reduce the indent level in the second loop

There should be no functional changes here

Signed-off-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Juston Li <juston.li@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181214012604.13746-3-lyude@redhat.com
drivers/gpu/drm/drm_dp_mst_topology.c