From: Nicholas Krause Date: Tue, 8 Sep 2015 22:00:33 +0000 (-0700) Subject: mm: make set_recommended_min_free_kbytes() return void X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2c0b80d463c6ade539d51ad03bc7c41849fb37e8;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git mm: make set_recommended_min_free_kbytes() return void This makes set_recommended_min_free_kbytes() have a return type of void as it cannot fail. Signed-off-by: Nicholas Krause Acked-by: Michal Hocko Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/huge_memory.c b/mm/huge_memory.c index 3e574efad8f8..71a4822c832b 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c @@ -106,7 +106,7 @@ static struct khugepaged_scan khugepaged_scan = { }; -static int set_recommended_min_free_kbytes(void) +static void set_recommended_min_free_kbytes(void) { struct zone *zone; int nr_zones = 0; @@ -141,7 +141,6 @@ static int set_recommended_min_free_kbytes(void) min_free_kbytes = recommended_min; } setup_per_zone_wmarks(); - return 0; } static int start_stop_khugepaged(void)