projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
drivers/net: use vzalloc()
[deliverable/linux.git]
/
drivers
/
net
/
cxgb4
/
cxgb4_main.c
diff --git
a/drivers/net/cxgb4/cxgb4_main.c
b/drivers/net/cxgb4/cxgb4_main.c
index f50bc98310f8b319cf8cdfe1f1b63a23fff19e72..848f89d19fb710cdfcaef16efc7221c0d9b9444f 100644
(file)
--- a/
drivers/net/cxgb4/cxgb4_main.c
+++ b/
drivers/net/cxgb4/cxgb4_main.c
@@
-868,12
+868,10
@@
out: release_firmware(fw);
*/
void *t4_alloc_mem(size_t size)
{
- void *p = k
m
alloc(size, GFP_KERNEL);
+ void *p = k
z
alloc(size, GFP_KERNEL);
if (!p)
- p = vmalloc(size);
- if (p)
- memset(p, 0, size);
+ p = vzalloc(size);
return p;
}
This page took
0.025389 seconds
and
5
git commands to generate.