diff options
-rw-r--r-- | mm/page_owner.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/mm/page_owner.c b/mm/page_owner.c index 590c2c89af74..5c941ca9861d 100644 --- a/mm/page_owner.c +++ b/mm/page_owner.c @@ -42,13 +42,7 @@ static void init_early_allocated_pages(void); static int __init early_page_owner_param(char *buf) { - if (!buf) - return -EINVAL; - - if (strcmp(buf, "on") == 0) - page_owner_enabled = true; - - return 0; + return kstrtobool(buf, &page_owner_enabled); } early_param("page_owner", early_page_owner_param); |