aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorYosry Ahmed <[email protected]>2024-07-02 13:21:39 +0000
committerDave Hansen <[email protected]>2024-07-02 11:33:44 -0700
commitb7c35279e0da414e7d90eba76f58a16223a734cb (patch)
tree5e8fb9ddb04b7b1c349b3d41f5881cbbd0b001d6 /tools/perf/scripts/python/task-analyzer.py
parentec225f8c255fd0f256c282cc73d211550cb08b34 (diff)
x86/mm: Cleanup prctl_enable_tagged_addr() nr_bits error checking
There are two separate checks in prctl_enable_tagged_addr() that nr_bits is in the correct range. The checks are arranged such the correct case is sandwiched between both error cases, which do exactly the same thing. Simplify the if condition and pull the correct case outside with the rest of the success code path. Signed-off-by: Yosry Ahmed <[email protected]> Signed-off-by: Dave Hansen <[email protected]> Reviewed-by: Kirill A. Shutemov <[email protected]> Link: https://lore.kernel.org/all/20240702132139.3332013-4-yosryahmed%40google.com
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions