[PATCH] mm: cleanup cmdline_parse_hugetlb_cma()

From: Roman Gushchin
Date: Thu Mar 12 2020 - 20:40:04 EST


Remove unused code.

Signed-off-by: Roman Gushchin <guro@xxxxxx>
---
mm/hugetlb.c | 7 -------
1 file changed, 7 deletions(-)

diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index 66bfc2bdc203..7a20cae7c77a 100644
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@ -5409,13 +5409,6 @@ static unsigned long hugetlb_cma_size __initdata;

static int __init cmdline_parse_hugetlb_cma(char *p)
{
- unsigned long long val;
- char *endptr;
-
- if (!p)
- return -EINVAL;
-
- val = simple_strtoull(p, &endptr, 0);
hugetlb_cma_size = memparse(p, &p);
return 0;
}
--
2.24.1