Merge tag 'arm-soc/for-4.8/soc-arm64' of http://github.com/Broadcom/stblinux into...
[cascardo/linux.git] / mm / page_poison.c
index 479e7ea..1eae5fa 100644 (file)
@@ -13,13 +13,7 @@ static int early_page_poison_param(char *buf)
 {
        if (!buf)
                return -EINVAL;
-
-       if (strcmp(buf, "on") == 0)
-               want_page_poisoning = true;
-       else if (strcmp(buf, "off") == 0)
-               want_page_poisoning = false;
-
-       return 0;
+       return strtobool(buf, &want_page_poisoning);
 }
 early_param("page_poison", early_page_poison_param);