mm: vmalloc: Simplify return boolean expression
Subsystems (2)
Uladzislau Rezki (Sony)
maintainerPATCH 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 <[email protected]>
Signed-off-by Uladzislau Rezki (Sony) <[email protected]>
--- mm/vmalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/vmalloc.c +1 -1
@@ -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 ; }/*
Signature · 1 line
2.30.2