Commit b172e0aa authored by Markus Elfring's avatar Markus Elfring Committed by Takashi Iwai

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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 1fac1686
...@@ -160,12 +160,8 @@ int snd_emux_free(struct snd_emux *emu) ...@@ -160,12 +160,8 @@ int snd_emux_free(struct snd_emux *emu)
snd_emux_detach_seq_oss(emu); snd_emux_detach_seq_oss(emu);
#endif #endif
snd_emux_detach_seq(emu); snd_emux_detach_seq(emu);
snd_emux_delete_hwdep(emu); snd_emux_delete_hwdep(emu);
snd_sf_free(emu->sflist);
if (emu->sflist)
snd_sf_free(emu->sflist);
kfree(emu->voices); kfree(emu->voices);
kfree(emu->name); kfree(emu->name);
kfree(emu); kfree(emu);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment