aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy.c
diff options
context:
space:
mode:
authorWang Jinchao <[email protected]>2023-08-20 20:53:17 +0800
committerIngo Molnar <[email protected]>2023-09-24 12:15:06 +0200
commit3eafe225995c67f8c179011ec2d6e4c12b32a53d (patch)
tree0d3925bb47c4a01be52330ac0648e9aece2c9c5b /lib/test_fortify/write_overflow-strncpy.c
parent2f8c62296b6f656bbfd17e9f1fadd7478003a9d9 (diff)
sched/core: Refactor the task_flags check for worker sleeping in sched_submit_work()
Simplify the conditional logic for checking worker flags by splitting the original compound `if` statement into separate `if` and `else if` clauses. This modification not only retains the previous functionality, but also reduces a single `if` check, improving code clarity and potentially enhancing performance. Signed-off-by: Wang Jinchao <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Link: https://lore.kernel.org/r/ZOIMvURE99ZRAYEj@fedora
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy.c')
0 files changed, 0 insertions, 0 deletions