diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-10-16 07:18:39 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-10-16 07:37:38 -0400 |
commit | 41e4b7dc6e1b6d717edb8679759c2bde138f78a9 (patch) | |
tree | 3d0c209c5caa5c34b01efeb1a556215b6d517dae /sound/synth | |
parent | 40ddfe659a19baa2ccc73899a150ca03373c44aa (diff) |
ALSA: emux: remove unused redundant variable p2
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>
Diffstat (limited to 'sound/synth')
-rw-r--r-- | sound/synth/emux/emux_oss.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sound/synth/emux/emux_oss.c b/sound/synth/emux/emux_oss.c index de19e108974a..764ff4bc2089 100644 --- a/sound/synth/emux/emux_oss.c +++ b/sound/synth/emux/emux_oss.c | |||
@@ -430,7 +430,6 @@ gusspec_control(struct snd_emux *emu, struct snd_emux_port *port, int cmd, | |||
430 | { | 430 | { |
431 | int voice; | 431 | int voice; |
432 | unsigned short p1; | 432 | unsigned short p1; |
433 | short p2; | ||
434 | int plong; | 433 | int plong; |
435 | struct snd_midi_channel *chan; | 434 | struct snd_midi_channel *chan; |
436 | 435 | ||
@@ -445,7 +444,6 @@ gusspec_control(struct snd_emux *emu, struct snd_emux_port *port, int cmd, | |||
445 | chan = &port->chset.channels[voice]; | 444 | chan = &port->chset.channels[voice]; |
446 | 445 | ||
447 | p1 = *(unsigned short *) &event[4]; | 446 | p1 = *(unsigned short *) &event[4]; |
448 | p2 = *(short *) &event[6]; | ||
449 | plong = *(int*) &event[4]; | 447 | plong = *(int*) &event[4]; |
450 | 448 | ||
451 | switch (cmd) { | 449 | switch (cmd) { |