Re: [PATCH] mm,hugetlb: Remove unneded initialization
From: Mike Kravetz
Date: Thu Nov 19 2020 - 13:29:04 EST
On 11/19/20 3:21 AM, Oscar Salvador wrote:
> hugetlb_add_hstate initializes nr_huge_pages and free_huge_pages to 0,
> but since hstates[] is a global variable, all its fields are defined to
> 0 already.
>
> Signed-off-by: Oscar Salvador <osalvador@xxxxxxx>
> ---
> mm/hugetlb.c | 2 --
> 1 file changed, 2 deletions(-)
Thanks,
Reviewed-by: Mike Kravetz <mike.kravetz@xxxxxxxxxx>
--
Mike Kravetz