projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c312659
)
USB: isp1362: Use kzalloc for allocating only one thing
author
Julia Lawall
<julia@diku.dk>
Sat, 19 Dec 2009 07:17:44 +0000
(08:17 +0100)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Tue, 2 Mar 2010 22:53:25 +0000
(14:53 -0800)
Use kzalloc rather than kcalloc(1,...)
The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)
// <smpl>
@@
@@
- kcalloc(1,
+ kzalloc(
...)
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/isp1362-hcd.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/host/isp1362-hcd.c
b/drivers/usb/host/isp1362-hcd.c
index 42971657fde2953f2d7798e5b45d4d14796fb16d..5596fc1a75aafcde938dee2441e147507013fce2 100644
(file)
--- a/
drivers/usb/host/isp1362-hcd.c
+++ b/
drivers/usb/host/isp1362-hcd.c
@@
-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 = k
calloc(1,
sizeof *ep, mem_flags);
+ ep = k
zalloc(
sizeof *ep, mem_flags);
if (!ep)
return -ENOMEM;
}