Commit 8cec3dd
sched/core: Simplify code by removing duplicate #ifdefs
There's a few cases of nested #ifdefs in the scheduler code
that can be simplified:
#ifdef DEFINE_A
...code block...
#ifdef DEFINE_A <-- This is a duplicate.
...code block...
#endif
#else
#ifndef DEFINE_A <-- This is also duplicate.
...code block...
#endif
#endif
More details about the script and methods used to find these code
patterns can be found at:
https://lore.kernel.org/all/20240118080326.13137-1-sshegde@linux.ibm.com/
No change in functionality intended.
[ mingo: Clarified the changelog. ]
Signed-off-by: Shrikanth Hegde <sshegde@linux.ibm.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Vincent Guittot <vincent.guittot@linaro.org>
Link: https://lore.kernel.org/r/20240216061433.535522-1-sshegde@linux.ibm.com1 parent 841c351 commit 8cec3dd
2 files changed
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1792 | 1792 | | |
1793 | 1793 | | |
1794 | 1794 | | |
1795 | | - | |
1796 | 1795 | | |
1797 | 1796 | | |
1798 | 1797 | | |
| |||
1898 | 1897 | | |
1899 | 1898 | | |
1900 | 1899 | | |
1901 | | - | |
1902 | 1900 | | |
1903 | 1901 | | |
1904 | 1902 | | |
| |||
2065 | 2063 | | |
2066 | 2064 | | |
2067 | 2065 | | |
2068 | | - | |
| 2066 | + | |
2069 | 2067 | | |
2070 | 2068 | | |
2071 | 2069 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10182 | 10182 | | |
10183 | 10183 | | |
10184 | 10184 | | |
10185 | | - | |
10186 | 10185 | | |
10187 | 10186 | | |
10188 | | - | |
10189 | 10187 | | |
10190 | 10188 | | |
10191 | 10189 | | |
| |||
0 commit comments