Skip to content

Commit 0498a04

Browse files
Zhu Juntiwai
authored andcommitted
ALSA: ice1712: Remove redundant code in stac9460_dac_vol_put
The variable 'ovol' is never referenced in the code, just remove it. Signed-off-by: Zhu Jun <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent 1e28005 commit 0498a04

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

sound/pci/ice1712/prodigy192.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -170,14 +170,9 @@ static int stac9460_dac_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_el
170170
tmp = stac9460_get(ice, idx);
171171
ovol = 0x7f - (tmp & 0x7f);
172172
change = (ovol != nvol);
173-
if (change) {
174-
ovol = (0x7f - nvol) | (tmp & 0x80);
175-
/*
176-
dev_dbg(ice->card->dev, "DAC Volume: reg 0x%02x: 0x%02x\n",
177-
idx, ovol);
178-
*/
173+
if (change)
179174
stac9460_put(ice, idx, (0x7f - nvol) | (tmp & 0x80));
180-
}
175+
181176
return change;
182177
}
183178

0 commit comments

Comments
 (0)