]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
ALSA: emux: remove unused redundant variable p2
authorColin Ian King <colin.king@canonical.com>
Mon, 16 Oct 2017 11:18:39 +0000 (12:18 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 16 Oct 2017 11:37:38 +0000 (13:37 +0200)
The variable p2 is being assigned but never used, it is redundant
and can be safely removed.  Cleans up clang warning: Value stored to
'p2' is never read.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/synth/emux/emux_oss.c

index de19e108974a432ec9f796f6c8dc5a1b99dec707..764ff4bc20892cc23a9a2b5054c8bf77f817a1f4 100644 (file)
@@ -430,7 +430,6 @@ gusspec_control(struct snd_emux *emu, struct snd_emux_port *port, int cmd,
 {
        int voice;
        unsigned short p1;
-       short p2;
        int plong;
        struct snd_midi_channel *chan;
 
@@ -445,7 +444,6 @@ gusspec_control(struct snd_emux *emu, struct snd_emux_port *port, int cmd,
        chan = &port->chset.channels[voice];
 
        p1 = *(unsigned short *) &event[4];
-       p2 = *(short *) &event[6];
        plong = *(int*) &event[4];
 
        switch (cmd) {