projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4df282
)
staging: ozwpan: remove unneeded __GFP_ZERO to kzalloc() at oz_elt_stream_create()
author
Jie Liu
<jeff.liu@oracle.com>
Fri, 1 Nov 2013 14:22:08 +0000
(22:22 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 12 Nov 2013 00:29:43 +0000
(16:29 -0800)
Get rid of the needless __GFP_ZERO flag for kzalloc() at oz_elt_stream_create().
Signed-off-by: Jie Liu <jeff.liu@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ozwpan/ozeltbuf.c
patch
|
blob
|
history
diff --git
a/drivers/staging/ozwpan/ozeltbuf.c
b/drivers/staging/ozwpan/ozeltbuf.c
index
9b86486
..
02d5412
100644
(file)
--- a/
drivers/staging/ozwpan/ozeltbuf.c
+++ b/
drivers/staging/ozwpan/ozeltbuf.c
@@
-138,7
+138,7
@@
int oz_elt_stream_create(struct oz_elt_buf *buf, u8 id, int max_buf_count)
oz_dbg(ON, "%s: (0x%x)\n", __func__, id);
- st = kzalloc(sizeof(struct oz_elt_stream), GFP_ATOMIC
| __GFP_ZERO
);
+ st = kzalloc(sizeof(struct oz_elt_stream), GFP_ATOMIC);
if (st == NULL)
return -ENOMEM;
atomic_set(&st->ref_count, 1);