From e7d74506055ea4a460264b12ad1e01ad6935320e Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Thu, 2 Jun 2022 13:07:14 -0700 Subject: [PATCH] mm-page_alloc-remotely-drain-per-cpu-lists-checkpatch-fixes WARNING: braces {} are not necessary for any arm of this statement #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 Signed-off-by: Andrew Morton --- mm/page_alloc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 104ee6b4809ef9..24b7fb3ca1507f 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -3233,11 +3233,10 @@ static void __drain_all_pages(struct zone *zone, bool force_all_cpus) } for_each_cpu(cpu, &cpus_with_pcps) { - if (zone) { + if (zone) drain_pages_zone(cpu, zone); - } else { + else drain_pages(cpu); - } } mutex_unlock(&pcpu_drain_mutex);