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/[email protected]
Signed-off-by: Miaohe Lin <[email protected]>
Reviewed-by: David Hildenbrand <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>1 parent ea15ba1 commit 64632fd
1 file changed
+3
-5
lines changed| 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