Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b76c0e95 authored by Markus Elfring's avatar Markus Elfring Committed by Takashi Iwai
Browse files

ALSA: sb: Delete an unnecessary check before the function call "snd_emux_free"



The snd_emux_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 aa57b93b
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -103,7 +103,6 @@ static int snd_emu8000_delete_device(struct snd_seq_device *dev)
	hw = dev->driver_data;
	if (hw->pcm)
		snd_device_free(dev->card, hw->pcm);
	if (hw->emu)
	snd_emux_free(hw->emu);
	snd_util_memhdr_free(hw->memhdr);
	hw->emu = NULL;