From: Ye Liu Collapse the if/return pattern into a direct boolean expression. No functional change. Signed-off-by: Ye Liu --- mm/vmalloc.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mm/vmalloc.c b/mm/vmalloc.c index ed4c4f7054c3..d076ef22b84a 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -1100,10 +1100,7 @@ decode_vn_id(unsigned int val) static bool is_vn_id_valid(unsigned int node_id) { - if (node_id < nr_vmap_nodes) - return true; - - return false; + return node_id < nr_vmap_nodes; } static __always_inline unsigned long -- 2.25.1