drm/dp_mst: Cleanup drm_dp_send_link_address() a bit
authorLyude Paul <lyude@redhat.com>
Tue, 3 Sep 2019 20:45:53 +0000 (16:45 -0400)
committerLyude Paul <lyude@redhat.com>
Tue, 3 Sep 2019 23:37:00 +0000 (19:37 -0400)
commit37dfdc55ffeb08b20b623eba04a3e3eb3a261962
treee282586c39faa0ebf7f1701fb09f364fae92886a
parent8b1e589d138c8ad82a3424a9f3df8a74a4a2837a
drm/dp_mst: Cleanup drm_dp_send_link_address() a bit

Declare local pointer to the drm_dp_link_address_ack_reply struct
instead of constantly dereferencing it through the union in
txmsg->reply. Then, invert the order of conditionals so we don't have to
do the bulk of the work inside them, and can wrap lines even less. Then
finally, rearrange variable declarations a bit.

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>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190903204645.25487-16-lyude@redhat.com
drivers/gpu/drm/drm_dp_mst_topology.c