Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 77eeac24 authored by Tomi Valkeinen's avatar Tomi Valkeinen Committed by Sean Paul
Browse files

drm/omap: fix uninitialized ret variable



audio_config function for both HDMI4 and HDMI5 return uninitialized
value as the error code if the display is not currently enabled. For
some reason this has not caused any issues.

Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180329104038.29154-1-tomi.valkeinen@ti.com


Reviewed-by: default avatarEmil Velikov <emil.velikov@collabora.com>
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarSean Paul <seanpaul@chromium.org>
parent 4a9fbfca
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -679,7 +679,7 @@ static int hdmi_audio_config(struct device *dev,
			     struct omap_dss_audio *dss_audio)
{
	struct omap_hdmi *hd = dev_get_drvdata(dev);
	int ret;
	int ret = 0;

	mutex_lock(&hd->lock);

+1 −1
Original line number Diff line number Diff line
@@ -671,7 +671,7 @@ static int hdmi_audio_config(struct device *dev,
			     struct omap_dss_audio *dss_audio)
{
	struct omap_hdmi *hd = dev_get_drvdata(dev);
	int ret;
	int ret = 0;

	mutex_lock(&hd->lock);