Skip to content

Commit 243b639

Browse files
committed
mm-page_alloc-remotely-drain-per-cpu-lists-checkpatch-fixes
WARNING: braces {} are not necessary for any arm of this statement torvalds#158: FILE: mm/page_alloc.c:3211: + if (zone) { [...] + } else { [...] total: 0 errors, 1 warnings, 115 lines checked NOTE: For some of the reported defects, checkpatch may be able to mechanically convert to the typical style using --fix or --fix-inplace. ./patches/mm-page_alloc-remotely-drain-per-cpu-lists.patch has style problems, please review. NOTE: If any of the errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. Please run checkpatch prior to sending patches Cc: Mel Gorman <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent c8599b0 commit 243b639

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

mm/page_alloc.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3233,11 +3233,10 @@ static void __drain_all_pages(struct zone *zone, bool force_all_cpus)
32333233
}
32343234

32353235
for_each_cpu(cpu, &cpus_with_pcps) {
3236-
if (zone) {
3236+
if (zone)
32373237
drain_pages_zone(cpu, zone);
3238-
} else {
3238+
else
32393239
drain_pages(cpu);
3240-
}
32413240
}
32423241

32433242
mutex_unlock(&pcpu_drain_mutex);

0 commit comments

Comments
 (0)