Unverified Commit 9a7e49bd authored by Xin Ji's avatar Xin Ji Committed by Robert Foss
Browse files

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: default avatarRobert Foss <robert.foss@linaro.org>
Signed-off-by: default avatarXin Ji <xji@analogixsemi.com>
Signed-off-by: default avatarRobert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20211104033609.2634452-1-xji@analogixsemi.com
parent a43661e7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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,