[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20221020125247.5053-1-urezki@gmail.com>
Date: Thu, 20 Oct 2022 14:52:47 +0200
From: "Uladzislau Rezki (Sony)" <urezki@...il.com>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: linux-mm@...ck.org, LKML <linux-kernel@...r.kernel.org>,
Christoph Hellwig <hch@...radead.org>,
Matthew Wilcox <willy@...radead.org>,
Nicholas Piggin <npiggin@...il.com>,
Uladzislau Rezki <urezki@...il.com>,
Oleksiy Avramchenko <oleksiy.avramchenko@...y.com>
Subject: [PATCH 1/1] mm: vmalloc: Simplify return boolean expression
A return expression of the __purge_vmap_area_lazy() function can
be simplified. Basically a boolean expression anyway is converted
to boolean values either to true or false.
Suggested-by: Christoph Hellwig <hch@...radead.org>
Signed-off-by: Uladzislau Rezki (Sony) <urezki@...il.com>
---
mm/vmalloc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/vmalloc.c b/mm/vmalloc.c
index bd56f68bedf0..0685b477c71b 100644
--- a/mm/vmalloc.c
+++ b/mm/vmalloc.c
@@ -1787,7 +1787,7 @@ static bool __purge_vmap_area_lazy(unsigned long start, unsigned long end)
out:
trace_purge_vmap_area_lazy(start, end, num_purged_areas);
- return num_purged_areas > 0 ? true:false;
+ return num_purged_areas > 0;
}
/*
--
2.30.2
Powered by blists - more mailing lists