* [PATCH -next] mm: vmalloc: Simplify bool conversion
@ 2022-10-20 2:20 Yang Li
0 siblings, 0 replies; only message in thread
From: Yang Li @ 2022-10-20 2:20 UTC (permalink / raw)
To: akpm; +Cc: linux-mm, linux-kernel, Yang Li, Abaci Robot
./mm/vmalloc.c:1789:36-41: WARNING: conversion to bool not needed here
Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2454
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
---
mm/vmalloc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/vmalloc.c b/mm/vmalloc.c
index 1e641d315d11..ca71de7c9d77 100644
--- a/mm/vmalloc.c
+++ b/mm/vmalloc.c
@@ -1786,7 +1786,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.20.1.7.g153144c
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-10-20 2:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-20 2:20 [PATCH -next] mm: vmalloc: Simplify bool conversion Yang Li
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox