summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-09-06 11:39:01 +0200
committerMark Brown <broonie@kernel.org>2018-09-06 12:12:26 +0200
commitc24fb71fa4f764f02c17cbf88a969f109794e602 (patch)
treea8abc1df94b7480ec4fd5b47fd431071bd19a792 /sound/soc/codecs
parentASoC: dapm: Move CODEC to CODEC params from the widget to the runtime (diff)
downloadlinux-c24fb71fa4f764f02c17cbf88a969f109794e602.tar.xz
linux-c24fb71fa4f764f02c17cbf88a969f109794e602.zip
ASoC: hdac_hdmi: remove redundant check for !port condition
The !port check is redundant as it being performed in the following check. Remove it. Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs')
-rw-r--r--sound/soc/codecs/hdac_hdmi.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sound/soc/codecs/hdac_hdmi.c b/sound/soc/codecs/hdac_hdmi.c
index 7b8533abf637..dc6a0dfea050 100644
--- a/sound/soc/codecs/hdac_hdmi.c
+++ b/sound/soc/codecs/hdac_hdmi.c
@@ -1961,9 +1961,6 @@ static int hdac_hdmi_get_spk_alloc(struct hdac_device *hdev, int pcm_idx)
port = list_first_entry(&pcm->port_list, struct hdac_hdmi_port, head);
- if (!port)
- return 0;
-
if (!port || !port->eld.eld_valid)
return 0;