]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/usb/host/sl811_cs.c
[SCSI] transport_class: BUG if we can't release the attribute container
[linux-2.6-omap-h63xx.git] / drivers / usb / host / sl811_cs.c
index ac9f11d19817d93e2fedcaf9cb26496a529df301..5da63f5350053eed6edff1a39824580ed25e83b1 100644 (file)
@@ -13,7 +13,6 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/init.h>
-#include <linux/sched.h>
 #include <linux/ptrace.h>
 #include <linux/slab.h>
 #include <linux/string.h>
@@ -279,10 +278,9 @@ static int sl811_cs_probe(struct pcmcia_device *link)
 {
        local_info_t *local;
 
-       local = kmalloc(sizeof(local_info_t), GFP_KERNEL);
+       local = kzalloc(sizeof(local_info_t), GFP_KERNEL);
        if (!local)
                return -ENOMEM;
-       memset(local, 0, sizeof(local_info_t));
        local->p_dev = link;
        link->priv = local;