Skip to content

Commit

Permalink
mm: make set_recommended_min_free_kbytes() return void
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nicholas Krause authored and Linus Torvalds committed Sep 8, 2015
1 parent 28c015d commit 2c0b80d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mm/huge_memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 2c0b80d

Please sign in to comment.