提交 77eeac24 编写于 作者: T Tomi Valkeinen 提交者: Sean Paul

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: NTomi Valkeinen <tomi.valkeinen@ti.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180329104038.29154-1-tomi.valkeinen@ti.comReviewed-by: NEmil Velikov <emil.velikov@collabora.com>
Reviewed-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: NSean Paul <seanpaul@chromium.org>
上级 4a9fbfca
...@@ -679,7 +679,7 @@ static int hdmi_audio_config(struct device *dev, ...@@ -679,7 +679,7 @@ static int hdmi_audio_config(struct device *dev,
struct omap_dss_audio *dss_audio) struct omap_dss_audio *dss_audio)
{ {
struct omap_hdmi *hd = dev_get_drvdata(dev); struct omap_hdmi *hd = dev_get_drvdata(dev);
int ret; int ret = 0;
mutex_lock(&hd->lock); mutex_lock(&hd->lock);
......
...@@ -671,7 +671,7 @@ static int hdmi_audio_config(struct device *dev, ...@@ -671,7 +671,7 @@ static int hdmi_audio_config(struct device *dev,
struct omap_dss_audio *dss_audio) struct omap_dss_audio *dss_audio)
{ {
struct omap_hdmi *hd = dev_get_drvdata(dev); struct omap_hdmi *hd = dev_get_drvdata(dev);
int ret; int ret = 0;
mutex_lock(&hd->lock); mutex_lock(&hd->lock);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册