Commit 59ca0e1c authored by Imre Deak's avatar Imre Deak
Browse files

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: default avatarLyude Paul <lyude@redhat.com>
Signed-off-by: default avatarImre Deak <imre.deak@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241203160223.2926014-8-imre.deak@intel.com
parent 2b245c97
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}