Commit f953e72c authored by Colin Ian King's avatar Colin Ian King Committed by Takashi Iwai

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: default avatarColin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20190905154826.5916-1-colin.king@canonical.comSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 06f1449a
...@@ -1440,7 +1440,7 @@ static bool update_eld(struct hda_codec *codec, ...@@ -1440,7 +1440,7 @@ static bool update_eld(struct hda_codec *codec,
struct hdmi_spec *spec = codec->spec; struct hdmi_spec *spec = codec->spec;
bool old_eld_valid = pin_eld->eld_valid; bool old_eld_valid = pin_eld->eld_valid;
bool eld_changed; bool eld_changed;
int pcm_idx = -1; int pcm_idx;
/* for monitor disconnection, save pcm_idx firstly */ /* for monitor disconnection, save pcm_idx firstly */
pcm_idx = per_pin->pcm_idx; pcm_idx = per_pin->pcm_idx;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment