[PATCH 7/7] drm/dp_mst: Use reset_msg_rx_state() instead of open coding it
Imre Deak
imre.deak at intel.com
Tue Dec 3 16:02:23 UTC 2024
Use reset_msg_rx_state() in drm_dp_mst_handle_up_req() instead of
open-coding it.
Cc: Lyude Paul <lyude at redhat.com>
Signed-off-by: Imre Deak <imre.deak at intel.com>
---
drivers/gpu/drm/display/drm_dp_mst_topology.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/display/drm_dp_mst_topology.c b/drivers/gpu/drm/display/drm_dp_mst_topology.c
index d6452a15daf6a..b6fb94b66bf79 100644
--- a/drivers/gpu/drm/display/drm_dp_mst_topology.c
+++ b/drivers/gpu/drm/display/drm_dp_mst_topology.c
@@ -4184,7 +4184,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;
}
--
2.44.2
More information about the dri-devel
mailing list