Commit 64632fd
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>1 parent ea15ba1 commit 64632fd
1 file changed
Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1891 | 1891 | | |
1892 | 1892 | | |
1893 | 1893 | | |
1894 | | - | |
1895 | | - | |
| 1894 | + | |
1896 | 1895 | | |
1897 | 1896 | | |
1898 | 1897 | | |
1899 | 1898 | | |
1900 | 1899 | | |
1901 | 1900 | | |
1902 | | - | |
1903 | | - | |
1904 | | - | |
| 1901 | + | |
| 1902 | + | |
1905 | 1903 | | |
1906 | 1904 | | |
1907 | 1905 | | |
| |||
0 commit comments