ALSA: emu10k1: Deletion of unnecessary checks before three function calls
authorMarkus Elfring <elfring@users.sourceforge.net>
Mon, 3 Nov 2014 13:54:36 +0000 (14:54 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 3 Nov 2014 14:16:14 +0000 (15:16 +0100)
The functions kfree(), release_firmware() and snd_util_memhdr_free() test
whether their argument is NULL and then return 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/pci/emu10k1/emu10k1_main.c
sound/pci/emu10k1/emufx.c

Simple merge
Simple merge