mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
ksm: remove redundant __GFP_ZERO from kcalloc
kcalloc returns zeroed memory. There's no need to use this flag. Signed-off-by: Joe Perches <[email protected]> Reviewed-by: Wanpeng Li <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
63d0f0a3c7
commit
bafe1e1440
1 changed files with 2 additions and 2 deletions
4
mm/ksm.c
4
mm/ksm.c
|
|
@ -2309,8 +2309,8 @@ static ssize_t merge_across_nodes_store(struct kobject *kobj,
|
|||
* Allocate stable and unstable together:
|
||||
* MAXSMP NODES_SHIFT 10 will use 16kB.
|
||||
*/
|
||||
buf = kcalloc(nr_node_ids + nr_node_ids,
|
||||
sizeof(*buf), GFP_KERNEL | __GFP_ZERO);
|
||||
buf = kcalloc(nr_node_ids + nr_node_ids, sizeof(*buf),
|
||||
GFP_KERNEL);
|
||||
/* Let us assume that RB_ROOT is NULL is zero */
|
||||
if (!buf)
|
||||
err = -ENOMEM;
|
||||
|
|
|
|||
Loading…
Reference in a new issue