ALSA: emu10k1: remove redundant assignment to tmp
authorColin Ian King <colin.king@canonical.com>
Tue, 17 Oct 2017 12:18:36 +0000 (13:18 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 17 Oct 2017 17:15:45 +0000 (19:15 +0200)
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>
sound/pci/emu10k1/emuproc.c

index cf05229b569beec224efe306c6eb4e1b37580d22..bde0d1954f56e4725336e68aaf0f3e4959a3c86e 100644 (file)
@@ -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]);