--------------------- PatchSet 3122 Date: 2005/04/14 13:36:24 Author: tiwai Branch: HEAD Tag: (none) Log: Summary: Remove dead code Removed the dead (duplicated) code. Members: pci/hda/hda_codec.c:1.10->1.11 Index: /sound/pci/hda/hda_codec.c diff -u /sound/pci/hda/hda_codec.c.old /sound/pci/hda/hda_codec.c --- /sound/pci/hda/hda_codec.c.old Wed Apr 13 06:45:31 2005 +++ /sound/pci/hda/hda_codec.c Thu Apr 14 05:36:24 2005 @@ -1449,10 +1449,6 @@ 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;