commit | 103956805c250ccef3d2a54a0a2e3354291cdd85 | [log] [tgz] |
---|---|---|
author | Miaohe Lin <linmiaohe@huawei.com> | Thu Sep 01 20:00:24 2022 +0800 |
committer | Andrew Morton <akpm@linux-foundation.org> | Sun Sep 11 20:26:09 2022 -0700 |
tree | 79a74178f95481db4a237a0b0467fcdb10b17b77 | |
parent | 3466534131b28e1ee1e7cfd5c77d981ea41b20aa [diff] |
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>