diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-09-05 11:48:26 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-09-05 13:46:06 -0400 |
commit | f953e72c9ca60ef13bb9680af8a5baf92cb93e52 (patch) | |
tree | 2aae2a8c25c9e502169f02a02332d6cead95f643 /sound/pci/hda | |
parent | 06f1449a2eaa9ec48b9f025e5e5449ffce4d5cec (diff) |
ALSA: hda/hdmi: remove redundant assignment to variable pcm_idx
Variable pcm_idx is being initialized with a value that is never read
and is being re-assigned immediately afterwards. The assignment is
redundant and hence can be removed.
Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20190905154826.5916-1-colin.king@canonical.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda')
-rw-r--r-- | sound/pci/hda/patch_hdmi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c index 83b8b9d27711..bca5de78e9ad 100644 --- a/sound/pci/hda/patch_hdmi.c +++ b/sound/pci/hda/patch_hdmi.c | |||
@@ -1440,7 +1440,7 @@ static bool update_eld(struct hda_codec *codec, | |||
1440 | struct hdmi_spec *spec = codec->spec; | 1440 | struct hdmi_spec *spec = codec->spec; |
1441 | bool old_eld_valid = pin_eld->eld_valid; | 1441 | bool old_eld_valid = pin_eld->eld_valid; |
1442 | bool eld_changed; | 1442 | bool eld_changed; |
1443 | int pcm_idx = -1; | 1443 | int pcm_idx; |
1444 | 1444 | ||
1445 | /* for monitor disconnection, save pcm_idx firstly */ | 1445 | /* for monitor disconnection, save pcm_idx firstly */ |
1446 | pcm_idx = per_pin->pcm_idx; | 1446 | pcm_idx = per_pin->pcm_idx; |