]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7c10bc2851b28d0af3296535405b00b5056d98dd
tree2e14f9e71c9bed0231706b9f80545dcadb2ec81a
parentf06378cf2496309f8d2ff20195527a7256e9fcef
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