summaryrefslogtreecommitdiffstats
path: root/mm/huge_memory.c
diff options
context:
space:
mode:
authorNicholas Krause <xerofoify@gmail.com>2015-09-08 15:00:33 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2015-09-08 15:35:28 -0700
commit2c0b80d463c6ade539d51ad03bc7c41849fb37e8 (patch)
treec283473b3da11a45acf6b0ac548e12c4798735d3 /mm/huge_memory.c
parent28c015d07507e164d93b33498b4e482ff81c0e9b (diff)
downloadop-kernel-dev-2c0b80d463c6ade539d51ad03bc7c41849fb37e8.zip
op-kernel-dev-2c0b80d463c6ade539d51ad03bc7c41849fb37e8.tar.gz
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 <xerofoify@gmail.com> Acked-by: Michal Hocko <mhocko@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/huge_memory.c')
-rw-r--r--mm/huge_memory.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/huge_memory.c b/mm/huge_memory.c
index 3e574ef..71a4822 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)
OpenPOWER on IntegriCloud