]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/oss/ac97_codec.c
V4L/DVB (7058): IR corrections for the Pinnacle 800i
[linux-2.6-omap-h63xx.git] / sound / oss / ac97_codec.c
index 602db497929abd70d048d1d5215b0d869651ab5f..fef56cac06c832650db596299af04185dc9919dc 100644 (file)
@@ -744,11 +744,10 @@ static int ac97_check_modem(struct ac97_codec *codec)
  
 struct ac97_codec *ac97_alloc_codec(void)
 {
-       struct ac97_codec *codec = kmalloc(sizeof(struct ac97_codec), GFP_KERNEL);
+       struct ac97_codec *codec = kzalloc(sizeof(struct ac97_codec), GFP_KERNEL);
        if(!codec)
                return NULL;
 
-       memset(codec, 0, sizeof(*codec));
        spin_lock_init(&codec->lock);
        INIT_LIST_HEAD(&codec->list);
        return codec;