aboutsummaryrefslogtreecommitdiff
path: root/scripts/gen_compile_commands.py
diff options
context:
space:
mode:
authorTom Rix <[email protected]>2020-08-05 13:59:11 -0700
committerPatrik Jakobsson <[email protected]>2020-08-19 15:49:10 +0200
commitcdd296cdae1af2d27dae3fcfbdf12c5252ab78cf (patch)
tree0e8a6bd39facce3a95c7d4b1e4c1db1d298f6d06 /scripts/gen_compile_commands.py
parent172c1e8572809de8313e311614ff2baf6b936339 (diff)
drm/gma500: fix error check
Reviewing this block of code in cdv_intel_dp_init() ret = cdv_intel_dp_aux_native_read(gma_encoder, DP_DPCD_REV, ... cdv_intel_edp_panel_vdd_off(gma_encoder); if (ret == 0) { /* if this fails, presume the device is a ghost */ DRM_INFO("failed to retrieve link info, disabling eDP\n"); drm_encoder_cleanup(encoder); cdv_intel_dp_destroy(connector); goto err_priv; } else { The (ret == 0) is not strict enough. cdv_intel_dp_aux_native_read() returns > 0 on success otherwise it is failure. So change to <= Fixes: d112a8163f83 ("gma500/cdv: Add eDP support") Signed-off-by: Tom Rix <[email protected]> Signed-off-by: Patrik Jakobsson <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'scripts/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions