aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorImre Deak <[email protected]>2024-12-03 18:02:23 +0200
committerImre Deak <[email protected]>2024-12-05 16:49:41 +0200
commit59ca0e1c97c5d752f85ca2922ff258ff5e62bc73 (patch)
treee42e8d267d974d3023ac74c4e8b1c303b0d34008
parent2b245c97b1af5d8f04c359e0826cb5a5c81ef704 (diff)
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 <[email protected]> Reviewed-by: Lyude Paul <[email protected]> Signed-off-by: Imre Deak <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
-rw-r--r--drivers/gpu/drm/display/drm_dp_mst_topology.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/display/drm_dp_mst_topology.c b/drivers/gpu/drm/display/drm_dp_mst_topology.c
index e5713e3be80e..dc4446d589e7 100644
--- a/drivers/gpu/drm/display/drm_dp_mst_topology.c
+++ b/drivers/gpu/drm/display/drm_dp_mst_topology.c
@@ -4188,7 +4188,7 @@ static int drm_dp_mst_handle_up_req(struct drm_dp_mst_topology_mgr *mgr)
out_put_primary:
drm_dp_mst_topology_put_mstb(mst_primary);
out_clear_reply:
- memset(&mgr->up_req_recv, 0, sizeof(struct drm_dp_sideband_msg_rx));
+ reset_msg_rx_state(&mgr->up_req_recv);
return ret;
}