]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
acpi-memory-hotplug-support-getting-hotplug-info-from-srat-fix-fix
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 20 Feb 2013 02:14:29 +0000 (13:14 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:52:39 +0000 (16:52 +1100)
use strcmp()

Cc: Tang Chen <tangchen@cn.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_alloc.c

index 8571e4c1748965cda8ab45b40c3a0607f9281d7b..822ec0108861e5f9cb5312fab6bc20b53e62c2d2 100644 (file)
@@ -5317,7 +5317,7 @@ static int __init cmdline_parse_movablemem_map(char *p)
        if (!p)
                goto err;
 
-       if (!strncmp(p, "acpi", max_t(size_t, 4, strlen(p))))
+       if (!strcmp(p, "acpi"))
                movablemem_map.acpi = true;
 
        /*