]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/usb/gadget/pxa2xx_udc.c
[PATCH] Add PCI ID for the Intel IDE Controller which is in the Intel Mac Minis shipp...
[linux-2.6-omap-h63xx.git] / drivers / usb / gadget / pxa2xx_udc.c
index bb028c5b8952cbdf141006ce26079d6ab2e68275..680f7fc5b1717addba266f385e33a7b209ee1d7e 100644 (file)
@@ -335,11 +335,10 @@ pxa2xx_ep_alloc_request (struct usb_ep *_ep, gfp_t gfp_flags)
 {
        struct pxa2xx_request *req;
 
-       req = kmalloc (sizeof *req, gfp_flags);
+       req = kzalloc(sizeof(*req), gfp_flags);
        if (!req)
                return NULL;
 
-       memset (req, 0, sizeof *req);
        INIT_LIST_HEAD (&req->queue);
        return &req->req;
 }