Commit b41ca5d
mm: Tidy up pcp lists checks usage
check_pcp_refill() remains the same with and without CONFIG_DEBUG_VM enabled.
Remove the unnecesary guard and keep the functions inlined alongside making use
of ternary operator at check_new_pcp() to choose the return value conditionally
to achieve better code readability without compromising any functionality.
Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com>1 parent 6af4c86 commit b41ca5d
1 file changed
Lines changed: 2 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1808 | 1808 | | |
1809 | 1809 | | |
1810 | 1810 | | |
1811 | | - | |
1812 | | - | |
1813 | | - | |
1814 | | - | |
1815 | | - | |
1816 | | - | |
1817 | | - | |
1818 | | - | |
1819 | | - | |
1820 | | - | |
1821 | | - | |
1822 | 1811 | | |
1823 | 1812 | | |
1824 | 1813 | | |
1825 | 1814 | | |
| 1815 | + | |
1826 | 1816 | | |
1827 | 1817 | | |
1828 | | - | |
| 1818 | + | |
1829 | 1819 | | |
1830 | | - | |
1831 | 1820 | | |
1832 | 1821 | | |
1833 | 1822 | | |
| |||
0 commit comments