diff options
author | Miaohe Lin <linmiaohe@huawei.com> | 2021-09-02 15:01:05 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-09-03 09:58:18 -0700 |
commit | 64632fd3eb4611780a1190362f2119d8f2bb5465 (patch) | |
tree | 02154b1176d4da1a7e818ed2dc4247c4d3c32c20 /tools/perf/scripts/python/syscall-counts.py | |
parent | ea15ba17b434b7dd7f92bb85b7e5cf53707733ad (diff) |
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>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions