diff mbox series

[1/1] mm: vmalloc: Simplify return boolean expression

Message ID 20221020125247.5053-1-urezki@gmail.com (mailing list archive)
State New
Headers show
Series [1/1] mm: vmalloc: Simplify return boolean expression | expand

Commit Message

Uladzislau Rezki Oct. 20, 2022, 12:52 p.m. UTC
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@infradead.org>
Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
---
 mm/vmalloc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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;
 }
 
 /*