forked from Minki/linux
ALSA: emux: Delete an unnecessary check before the function call "snd_sf_free"
The snd_sf_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>
This commit is contained in:
parent
1fac168637
commit
b172e0aae6
@ -160,12 +160,8 @@ int snd_emux_free(struct snd_emux *emu)
|
||||
snd_emux_detach_seq_oss(emu);
|
||||
#endif
|
||||
snd_emux_detach_seq(emu);
|
||||
|
||||
snd_emux_delete_hwdep(emu);
|
||||
|
||||
if (emu->sflist)
|
||||
snd_sf_free(emu->sflist);
|
||||
|
||||
snd_sf_free(emu->sflist);
|
||||
kfree(emu->voices);
|
||||
kfree(emu->name);
|
||||
kfree(emu);
|
||||
|
Loading…
Reference in New Issue
Block a user