Skip to content

Commit

Permalink
ALSA: hda - Remove shutup calls in free callbacks
Browse files Browse the repository at this point in the history
The free callback is called at the state where no extra verbs are
executed, thus calling *_shutup() is useless, as it's checking the
shutdown flag.  Remove such superfluous calls.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed Nov 21, 2012
1 parent efc2f8d commit e15f1b4
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion sound/pci/hda/patch_analog.c
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,6 @@ static void ad198x_free(struct hda_codec *codec)
if (!spec)
return;

ad198x_shutup(codec);
ad198x_free_kctls(codec);
kfree(spec);
snd_hda_detach_beep_device(codec);
Expand Down
1 change: 0 additions & 1 deletion sound/pci/hda/patch_realtek.c
Original file line number Diff line number Diff line change
Expand Up @@ -2404,7 +2404,6 @@ static void alc_free(struct hda_codec *codec)
if (!spec)
return;

alc_shutup(codec);
alc_free_kctls(codec);
alc_free_bind_ctls(codec);
snd_hda_gen_free(&spec->gen);
Expand Down
2 changes: 0 additions & 2 deletions sound/pci/hda/patch_sigmatel.c
Original file line number Diff line number Diff line change
Expand Up @@ -4575,8 +4575,6 @@ static void stac92xx_free(struct hda_codec *codec)
if (! spec)
return;

stac92xx_shutup(codec);

kfree(spec);
snd_hda_detach_beep_device(codec);
}
Expand Down

0 comments on commit e15f1b4

Please sign in to comment.