Skip to content

Commit 59ca0e1

Browse files
committed
drm/dp_mst: Use reset_msg_rx_state() instead of open coding it
Use reset_msg_rx_state() in drm_dp_mst_handle_up_req() instead of open-coding it. Cc: Lyude Paul <lyude@redhat.com> Reviewed-by: Lyude Paul <lyude@redhat.com> Signed-off-by: Imre Deak <imre.deak@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20241203160223.2926014-8-imre.deak@intel.com
1 parent 2b245c9 commit 59ca0e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/display/drm_dp_mst_topology.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4188,7 +4188,7 @@ static int drm_dp_mst_handle_up_req(struct drm_dp_mst_topology_mgr *mgr)
41884188
out_put_primary:
41894189
drm_dp_mst_topology_put_mstb(mst_primary);
41904190
out_clear_reply:
4191-
memset(&mgr->up_req_recv, 0, sizeof(struct drm_dp_sideband_msg_rx));
4191+
reset_msg_rx_state(&mgr->up_req_recv);
41924192
return ret;
41934193
}
41944194

0 commit comments

Comments
 (0)