diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2005-10-24 19:38:24 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-10-28 23:47:51 (GMT) |
commit | 0a1ef3b5a765a6f20e7b8caf295aad3276243966 (patch) | |
tree | 31d2bc231306e3ed6ed81512e460e32d00bfc730 /drivers/usb/core/hcd.c | |
parent | b724ae77969fd832be71419dca74bece9af287ff (diff) | |
download | linux-fsl-qoriq-0a1ef3b5a765a6f20e7b8caf295aad3276243966.tar.xz |
[PATCH] usbcore: Use kzalloc instead of kmalloc/memset
This patch (as590) fixes up all the remaining places where usbcore can
use kzalloc rather than kmalloc/memset.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/core/hcd.c')
-rw-r--r-- | drivers/usb/core/hcd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c index e8f2b8d..61ef994 100644 --- a/drivers/usb/core/hcd.c +++ b/drivers/usb/core/hcd.c @@ -744,10 +744,9 @@ struct usb_bus *usb_alloc_bus (struct usb_operations *op) { struct usb_bus *bus; - bus = kmalloc (sizeof *bus, GFP_KERNEL); + bus = kzalloc (sizeof *bus, GFP_KERNEL); if (!bus) return NULL; - memset(bus, 0, sizeof(struct usb_bus)); usb_bus_init (bus); bus->op = op; return bus; |