OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
243bcfa
)
ASoC: hdac_hdmi: remove redundant check for !port condition
author
Colin Ian King
<colin.king@canonical.com>
Thu, 6 Sep 2018 09:39:01 +0000
(10:39 +0100)
committer
Mark Brown
<broonie@kernel.org>
Thu, 6 Sep 2018 10:12:26 +0000
(11:12 +0100)
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>
sound/soc/codecs/hdac_hdmi.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/hdac_hdmi.c
b/sound/soc/codecs/hdac_hdmi.c
index
7b8533a
..
dc6a0df
100644
(file)
--- 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;