git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
drivers/net: use vzalloc()
[pandora-kernel.git]
/
drivers
/
net
/
cxgb4
/
cxgb4_main.c
diff --git
a/drivers/net/cxgb4/cxgb4_main.c
b/drivers/net/cxgb4/cxgb4_main.c
index
f50bc98
..
848f89d
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;
}