]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/vmstat: simplify the array size calculation
authorMiaohe Lin <linmiaohe@huawei.com>
Mon, 23 Aug 2021 23:59:39 +0000 (09:59 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 25 Aug 2021 23:34:20 +0000 (09:34 +1000)
commit251f8851237cbf3bca20be17f69076d09da3f30b
tree9f0bc6cac23027ddd7434c518770998ba729181f
parent52bbb62ee48fe2a27b0412ccab9eb32817dd865c
mm/vmstat: simplify the array size calculation

We can replace the array_num * sizeof(array[0]) with sizeof(array) to
simplify the code.

Link: https://lkml.kernel.org/r/20210715122911.15700-3-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
mm/vmstat.c