]> git.baikalelectronics.ru Git - kernel.git/commit
hugetlb: use sizeof() to get the array size
authorMiaohe Lin <linmiaohe@huawei.com>
Thu, 1 Sep 2022 12:00:24 +0000 (20:00 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 12 Sep 2022 03:26:09 +0000 (20:26 -0700)
commit19251eda86eb7715168e24c8899707e5cffa21d5
tree79a74178f95481db4a237a0b0467fcdb10b17b77
parent7fb4d9a0feff52776275bc182f831efec3a8d800
hugetlb: use sizeof() to get the array size

It's better to use sizeof() to get the array size instead of manual
calculation. Minor readability improvement.

Link: https://lkml.kernel.org/r/20220901120030.63318-5-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: Muchun Song <songmuchun@bytedance.com>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/hugetlb.c