]> Pileus Git - ~andy/linux/blobdiff - drivers/usb/host/isp1362-hcd.c
USB: isp1362: Use kzalloc for allocating only one thing
[~andy/linux] / drivers / usb / host / isp1362-hcd.c
index 42971657fde2953f2d7798e5b45d4d14796fb16d..5596fc1a75aafcde938dee2441e147507013fce2 100644 (file)
@@ -1257,7 +1257,7 @@ static int isp1362_urb_enqueue(struct usb_hcd *hcd,
 
        /* avoid all allocations within spinlocks: request or endpoint */
        if (!hep->hcpriv) {
-               ep = kcalloc(1, sizeof *ep, mem_flags);
+               ep = kzalloc(sizeof *ep, mem_flags);
                if (!ep)
                        return -ENOMEM;
        }