Skip to content
Unverified Commit d583e752 authored by Tom Rix's avatar Tom Rix Committed by Robert Foss
Browse files

drm/bridge: anx7625: check the return on anx7625_aux_trans

Clang static analysis reports this issue
anx7625.c:876:13: warning: The left operand of '&' is
  a garbage value
  if (!(bcap & 0xOA01)) {
        ~~~~ ^

bcap is only set by a successful call to
anx7625_aux_trans().  So check.

Fixes: cd1637c7

 ("drm/bridge: anx7625: add HDCP support")
Signed-off-by: default avatarTom Rix <trix@redhat.com>
Fixes: adca62ec

 ("drm/bridge: anx7625: Support reading edid through aux channel")
Signed-off-by: default avatarRobert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220303201943.501746-1-trix@redhat.com
Reviewed-by: default avatarRobert Foss <robert.foss@linaro.org>
parent 4404cdb5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment