diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2015-01-03 12:28:21 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-01-04 09:12:29 -0500 |
commit | b172e0aae6d14baf646a36052d03b301535f4ef5 (patch) | |
tree | 8049612e1ec366e1b90b15b47d1f781625d1190c /sound/synth/emux | |
parent | 1fac1686377410169952db63d282490bc0554662 (diff) |
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>
Diffstat (limited to 'sound/synth/emux')
-rw-r--r-- | sound/synth/emux/emux.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sound/synth/emux/emux.c b/sound/synth/emux/emux.c index 93522072bc87..f27a1c85f81b 100644 --- a/sound/synth/emux/emux.c +++ b/sound/synth/emux/emux.c | |||
@@ -160,12 +160,8 @@ int snd_emux_free(struct snd_emux *emu) | |||
160 | snd_emux_detach_seq_oss(emu); | 160 | snd_emux_detach_seq_oss(emu); |
161 | #endif | 161 | #endif |
162 | snd_emux_detach_seq(emu); | 162 | snd_emux_detach_seq(emu); |
163 | |||
164 | snd_emux_delete_hwdep(emu); | 163 | snd_emux_delete_hwdep(emu); |
165 | 164 | snd_sf_free(emu->sflist); | |
166 | if (emu->sflist) | ||
167 | snd_sf_free(emu->sflist); | ||
168 | |||
169 | kfree(emu->voices); | 165 | kfree(emu->voices); |
170 | kfree(emu->name); | 166 | kfree(emu->name); |
171 | kfree(emu); | 167 | kfree(emu); |