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

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

ALSA: ice17xx: Deletion of unnecessary checks before the function call "snd_ac97_resume"



The snd_ac97_resume() 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 f0acd28c
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2878,7 +2878,6 @@ static int snd_ice1712_resume(struct device *dev)
	outw(ice->pm_saved_spdif_ctrl, ICEMT(ice, ROUTE_SPDOUT));
	outw(ice->pm_saved_route, ICEMT(ice, ROUTE_PSDOUT03));

	if (ice->ac97)
	snd_ac97_resume(ice->ac97);

	snd_power_change_state(card, SNDRV_CTL_POWER_D0);
+1 −2
Original line number Diff line number Diff line
@@ -2875,7 +2875,6 @@ static int snd_vt1724_resume(struct device *dev)
	outb(ice->pm_saved_spdif_cfg, ICEREG1724(ice, SPDIF_CFG));
	outl(ice->pm_saved_route, ICEMT1724(ice, ROUTE_PLAYBACK));

	if (ice->ac97)
	snd_ac97_resume(ice->ac97);

	snd_power_change_state(card, SNDRV_CTL_POWER_D0);