diff mbox series

ASoC: hdac_hdmi: remove redundant check for !port condition

Message ID 20180906093901.16682-1-colin.king@canonical.com (mailing list archive)
State Accepted
Commit c24fb71fa4f764f02c17cbf88a969f109794e602
Headers show
Series ASoC: hdac_hdmi: remove redundant check for !port condition | expand

Commit Message

Colin King Sept. 6, 2018, 9:39 a.m. UTC
From: Colin Ian King <colin.king@canonical.com>

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>
---
 sound/soc/codecs/hdac_hdmi.c | 3 ---
 1 file changed, 3 deletions(-)
diff mbox series

Patch

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;