ALSA: core: Deletion of unnecessary checks before two function calls
authorMarkus Elfring <elfring@users.sourceforge.net>
Fri, 21 Nov 2014 17:34:48 +0000 (18:34 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 21 Nov 2014 19:06:57 +0000 (20:06 +0100)
commitd712eaf29d3fe5928d891a4a90ac58644ad595ed
tree3de3dce17716da6132740fa87449231d0fa21a04
parenteaa8e5ef18fa9e09286482a4ded3a3cad36e44b2
ALSA: core: Deletion of unnecessary checks before two function calls

The functions snd_seq_oss_timer_delete() and vunmap() perform also input
parameter validation. 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_init.c
sound/core/sgbuf.c