From: Yaowei Bai Date: Fri, 6 Nov 2015 02:47:17 +0000 (-0800) Subject: mm/vmscan: make inactive_anon_is_low_global return directly X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=29d06bbb41595f82db309a5516426ef8bd0f27b7;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git mm/vmscan: make inactive_anon_is_low_global return directly Delete unnecessary if to let inactive_anon_is_low_global return directly. No functional changes. Signed-off-by: Yaowei Bai Acked-by: David Rientjes Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/vmscan.c b/mm/vmscan.c index 7f63a9381f71..773fc8db75d2 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -1866,10 +1866,7 @@ static int inactive_anon_is_low_global(struct zone *zone) active = zone_page_state(zone, NR_ACTIVE_ANON); inactive = zone_page_state(zone, NR_INACTIVE_ANON); - if (inactive * zone->inactive_ratio < active) - return 1; - - return 0; + return inactive * zone->inactive_ratio < active; } /**