Commit bafe1e14403ad40714ffcfa1fb173b371cc87a1f
Committed by
Linus Torvalds
1 parent
63d0f0a3c7
Exists in
master
and in
16 other branches
ksm: remove redundant __GFP_ZERO from kcalloc
kcalloc returns zeroed memory. There's no need to use this flag. Signed-off-by: Joe Perches <joe@perches.com> Reviewed-by: Wanpeng Li <liwanp@linux.vnet.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
mm/ksm.c
... | ... | @@ -2309,8 +2309,8 @@ |
2309 | 2309 | * Allocate stable and unstable together: |
2310 | 2310 | * MAXSMP NODES_SHIFT 10 will use 16kB. |
2311 | 2311 | */ |
2312 | - buf = kcalloc(nr_node_ids + nr_node_ids, | |
2313 | - sizeof(*buf), GFP_KERNEL | __GFP_ZERO); | |
2312 | + buf = kcalloc(nr_node_ids + nr_node_ids, sizeof(*buf), | |
2313 | + GFP_KERNEL); | |
2314 | 2314 | /* Let us assume that RB_ROOT is NULL is zero */ |
2315 | 2315 | if (!buf) |
2316 | 2316 | err = -ENOMEM; |