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

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

ALSA: oxygen: Delete an unnecessary check before the function call "snd_pcm_suspend"



The snd_pcm_suspend() 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 a827977a
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -736,7 +736,6 @@ static int oxygen_pci_suspend(struct device *dev)
	snd_power_change_state(card, SNDRV_CTL_POWER_D3hot);

	for (i = 0; i < PCM_COUNT; ++i)
		if (chip->streams[i])
		snd_pcm_suspend(chip->streams[i]);

	if (chip->model.suspend)