Skip to content

Commit

Permalink
ALSA: hda/hdmi: remove redundant assignment to variable pcm_idx
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Colin Ian King authored and Takashi Iwai committed Sep 5, 2019
1 parent 06f1449 commit f953e72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/pci/hda/patch_hdmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1440,7 +1440,7 @@ static bool update_eld(struct hda_codec *codec,
struct hdmi_spec *spec = codec->spec;
bool old_eld_valid = pin_eld->eld_valid;
bool eld_changed;
int pcm_idx = -1;
int pcm_idx;

/* for monitor disconnection, save pcm_idx firstly */
pcm_idx = per_pin->pcm_idx;
Expand Down

0 comments on commit f953e72

Please sign in to comment.