summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXin Ji <xji@analogixsemi.com>2021-11-04 11:36:09 +0800
committerRobert Foss <robert.foss@linaro.org>2021-11-04 11:14:06 +0100
commit9a7e49bd7992fca8cae11d21ffe5ebe73a2f4c18 (patch)
treeae451987ffd0af67934bfeaa58cd59387664e551
parenta43661e7e819b100e1f833a35018560a1d9abb39 (diff)
drm/bridge: anx7625: fix not correct return value
At some time, the original code may return non zero value, force return 0 if operation finished. Reviewed-by: Robert Foss <robert.foss@linaro.org> Signed-off-by: Xin Ji <xji@analogixsemi.com> Signed-off-by: Robert Foss <robert.foss@linaro.org> Link: https://patchwork.freedesktop.org/patch/msgid/20211104033609.2634452-1-xji@analogixsemi.com
-rw-r--r--drivers/gpu/drm/bridge/analogix/anx7625.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/bridge/analogix/anx7625.c b/drivers/gpu/drm/bridge/analogix/anx7625.c
index d0317651cd75..f48e91134c20 100644
--- a/drivers/gpu/drm/bridge/analogix/anx7625.c
+++ b/drivers/gpu/drm/bridge/analogix/anx7625.c
@@ -191,10 +191,10 @@ static int wait_aux_op_finish(struct anx7625_data *ctx)
AP_AUX_CTRL_STATUS);
if (val < 0 || (val & 0x0F)) {
DRM_DEV_ERROR(dev, "aux status %02x\n", val);
- val = -EIO;
+ return -EIO;
}
- return val;
+ return 0;
}
static int anx7625_video_mute_control(struct anx7625_data *ctx,