summaryrefslogtreecommitdiffstats
path: root/.cocciconfig
diff options
context:
space:
mode:
authorYosry Ahmed <yosryahmed@google.com>2024-07-02 15:21:39 +0200
committerDave Hansen <dave.hansen@linux.intel.com>2024-07-02 20:33:44 +0200
commitb7c35279e0da414e7d90eba76f58a16223a734cb (patch)
tree5e8fb9ddb04b7b1c349b3d41f5881cbbd0b001d6 /.cocciconfig
parentx86/mm: Fix LAM inconsistency during context switch (diff)
downloadlinux-b7c35279e0da414e7d90eba76f58a16223a734cb.tar.xz
linux-b7c35279e0da414e7d90eba76f58a16223a734cb.zip
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 <yosryahmed@google.com> Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com> Reviewed-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Link: https://lore.kernel.org/all/20240702132139.3332013-4-yosryahmed%40google.com
Diffstat (limited to '.cocciconfig')
0 files changed, 0 insertions, 0 deletions