Skip to contentSkip to conversation

mm: vmalloc: Simplify bool conversion

PATCH New Yang Li 1 participant 1 message Oct 20, 2022

Subsystems (2)
lore
Share & tools
lore

Yang Li

author
#0 lore raw

PATCH 1/1 mm: vmalloc: Simplify bool conversion

./mm/vmalloc.c:1789:36-41: WARNING: conversion to bool not needed here

---
 mm/vmalloc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/vmalloc.c +1 -1
index 1e641d315d11..ca71de7c9d77 100644
@@ -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;
 }
 
 /*
Signature · 1 line
2.20.1.7.g153144c