mm/vmstat: simplify the array size calculation
authorMiaohe Lin <linmiaohe@huawei.com>
Thu, 2 Sep 2021 22:01:05 +0000 (15:01 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 3 Sep 2021 16:58:18 +0000 (09:58 -0700)
commit64632fd3eb4611780a1190362f2119d8f2bb5465
tree02154b1176d4da1a7e818ed2dc4247c4d3c32c20
parentea15ba17b434b7dd7f92bb85b7e5cf53707733ad
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: Linus Torvalds <torvalds@linux-foundation.org>
mm/vmstat.c