]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ALSA: seq: Deletion of unnecessary checks before the function call "snd_midi_event_free"
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 3 Jan 2015 13:54:56 +0000 (14:54 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sun, 4 Jan 2015 14:11:05 +0000 (15:11 +0100)
commit57dca36ee25bcab20a71705175c00b6f114cdab4
treec3c6ee752a87305b99d0e6b4b5f03adc19aee41a
parentadc2ae0bb6daa2287d1a6567d18be01da546f7a7
ALSA: seq: Deletion of unnecessary checks before the function call "snd_midi_event_free"

The snd_midi_event_free() function tests whether its argument is NULL and then
returns immediately. Thus the test around the call is not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/seq/oss/seq_oss_midi.c
sound/core/seq/seq_midi.c