summaryrefslogtreecommitdiff
path: root/sound/pci
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-10-17 13:18:36 +0100
committerTakashi Iwai <tiwai@suse.de>2017-10-17 19:15:45 +0200
commitd368478b2995a1eda156b4fa8b0a9d0850f325ed (patch)
tree7991a19b365dfd32a1d7257c10b0ed660b01bf2a /sound/pci
parent067483577bce79e11afc41a29f38d43840e623de (diff)
ALSA: emu10k1: remove redundant assignment to tmp
The assignment to variable tmp is redundant as the value is never read and a new value is assigned to tmp in the following for-loop, so remove the assignment. Cleans up clang warning: Value stored to 'tmp' is never read Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r--sound/pci/emu10k1/emuproc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/pci/emu10k1/emuproc.c b/sound/pci/emu10k1/emuproc.c
index cf05229b569b..bde0d1954f56 100644
--- a/sound/pci/emu10k1/emuproc.c
+++ b/sound/pci/emu10k1/emuproc.c
@@ -280,7 +280,6 @@ static void snd_emu10k1_proc_rates_read(struct snd_info_entry *entry,
struct snd_emu10k1 *emu = entry->private_data;
unsigned int val, tmp, n;
val = snd_emu10k1_ptr20_read(emu, CAPTURE_RATE_STATUS, 0);
- tmp = (val >> 16) & 0x8;
for (n = 0; n < 4; n++) {
tmp = val >> (16 + (n*4));
if (tmp & 0x8) snd_iprintf(buffer, "Channel %d: Rate=%d\n", n, samplerate[tmp & 0x7]);