Skip to content
Commit 2ac6cdd5 authored by Simon Ser's avatar Simon Ser
Browse files

drm/dp_mst: fix drm_dp_dpcd_read return value checks



drm_dp_dpcd_read returns the number of bytes read. The previous code
would print garbage on DPCD error, and would exit with on error on
success.

Signed-off-by: default avatarSimon Ser <contact@emersion.fr>
Fixes: cb897542 ("drm/dp_mst: Fix W=1 warnings")
Cc: Lyude Paul <lyude@redhat.com>
Cc: Benjamin Gaignard <benjamin.gaignard@st.com>
Reviewed-by: default avatarJani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/473500/
parent 5d2f2e8b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment