diff options
| author | Lyude Paul <lyude@redhat.com> | 2019-09-03 16:45:53 -0400 |
|---|---|---|
| committer | Lyude Paul <lyude@redhat.com> | 2019-09-03 19:37:00 -0400 |
| commit | 37dfdc55ffeb08b20b623eba04a3e3eb3a261962 (patch) | |
| tree | e282586c39faa0ebf7f1701fb09f364fae92886a /drivers/gpu/drm/virtio/virtgpu_object.c | |
| parent | drm/dp_mst: Refactor drm_dp_mst_handle_down_rep() (diff) | |
| download | linux-37dfdc55ffeb08b20b623eba04a3e3eb3a261962.tar.gz linux-37dfdc55ffeb08b20b623eba04a3e3eb3a261962.zip | |
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
Diffstat (limited to 'drivers/gpu/drm/virtio/virtgpu_object.c')
0 files changed, 0 insertions, 0 deletions
