]> nv-tegra.nvidia Code Review - linux-2.6.git/commitdiff
[ALSA] Remove dead code
authorTakashi Iwai <tiwai@suse.de>
Thu, 14 Apr 2005 11:36:24 +0000 (13:36 +0200)
committerJaroslav Kysela <perex@suse.cz>
Sun, 29 May 2005 08:01:01 +0000 (10:01 +0200)
HDA Codec driver
Removed the dead (duplicated) code.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c

index be6cba3493943ba5f6d0f2e4e0b0c8613ba03c85..890b7566154a2c20063bebbc5a7418182ac88b05 100644 (file)
@@ -1449,10 +1449,6 @@ static int set_pcm_default_values(struct hda_codec *codec, struct hda_pcm_stream
                snd_assert(info->nid, return -EINVAL);
                info->ops.prepare = hda_pcm_default_prepare;
        }
-       if (info->ops.prepare == NULL) {
-               snd_assert(info->nid, return -EINVAL);
-               info->ops.prepare = hda_pcm_default_prepare;
-       }
        if (info->ops.cleanup == NULL) {
                snd_assert(info->nid, return -EINVAL);
                info->ops.cleanup = hda_pcm_default_cleanup;