diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2014-11-17 10:28:02 (GMT) |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-11-17 12:45:51 (GMT) |
commit | ae1b22658e6d3ebc6af07a225c221d84fe8cb91f (patch) | |
tree | d4c5f8d00cb8ca39717a4c7152fc1e4a8bc33c12 /sound/pci/ice1712/ice1724.c | |
parent | f0acd28c87ad2a5d1b40403fdd5defda2961b2a1 (diff) | |
download | linux-ae1b22658e6d3ebc6af07a225c221d84fe8cb91f.tar.xz |
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: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/ice1712/ice1724.c')
-rw-r--r-- | sound/pci/ice1712/ice1724.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/pci/ice1712/ice1724.c b/sound/pci/ice1712/ice1724.c index ea53167..d73da15 100644 --- a/sound/pci/ice1712/ice1724.c +++ b/sound/pci/ice1712/ice1724.c @@ -2875,8 +2875,7 @@ 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_ac97_resume(ice->ac97); snd_power_change_state(card, SNDRV_CTL_POWER_D0); return 0; |