diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-02-27 15:29:43 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-03-20 17:49:59 -0500 |
commit | 80b6ca48321974a6566a1c9048ba34f60420bca6 (patch) | |
tree | a350e3cf6b794081c13c89d5b1913b2c1207570d /drivers/usb/host/ehci-sched.c | |
parent | d54a5cb6484705f7808b337917cc7598f2f971c3 (diff) |
[PATCH] USB: kzalloc() conversion for rest of drivers/usb
Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/ehci-sched.c')
-rw-r--r-- | drivers/usb/host/ehci-sched.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/host/ehci-sched.c b/drivers/usb/host/ehci-sched.c index 90d6900a37f4..5871944e6145 100644 --- a/drivers/usb/host/ehci-sched.c +++ b/drivers/usb/host/ehci-sched.c | |||
@@ -864,9 +864,8 @@ iso_sched_alloc (unsigned packets, gfp_t mem_flags) | |||
864 | int size = sizeof *iso_sched; | 864 | int size = sizeof *iso_sched; |
865 | 865 | ||
866 | size += packets * sizeof (struct ehci_iso_packet); | 866 | size += packets * sizeof (struct ehci_iso_packet); |
867 | iso_sched = kmalloc (size, mem_flags); | 867 | iso_sched = kzalloc(size, mem_flags); |
868 | if (likely (iso_sched != NULL)) { | 868 | if (likely (iso_sched != NULL)) { |
869 | memset(iso_sched, 0, size); | ||
870 | INIT_LIST_HEAD (&iso_sched->td_list); | 869 | INIT_LIST_HEAD (&iso_sched->td_list); |
871 | } | 870 | } |
872 | return iso_sched; | 871 | return iso_sched; |