aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorWill Deacon <will@kernel.org>2021-02-12 15:13:57 +0000
committerWill Deacon <will@kernel.org>2021-02-12 15:13:57 +0000
commit82a1c2b94ac088674caa246dfe0c09f4e6fe05d0 (patch)
tree559b3b71984ed407435a9fe10a5eb0fb33afd486
parentMerge branch 'for-next/rng' into for-next/core (diff)
parentarm64: mte: style: Simplify bool comparison (diff)
downloadwireguard-linux-82a1c2b94ac088674caa246dfe0c09f4e6fe05d0.tar.xz
wireguard-linux-82a1c2b94ac088674caa246dfe0c09f4e6fe05d0.zip
Merge branch 'for-next/selftests' into for-next/core
Trivial cleanup to one of the MTE selftests. * for-next/selftests: arm64: mte: style: Simplify bool comparison
Diffstat (limited to '')
-rw-r--r--tools/testing/selftests/arm64/mte/check_buffer_fill.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/arm64/mte/check_buffer_fill.c b/tools/testing/selftests/arm64/mte/check_buffer_fill.c
index c9fa141ebdcc..75fc482d63b6 100644
--- a/tools/testing/selftests/arm64/mte/check_buffer_fill.c
+++ b/tools/testing/selftests/arm64/mte/check_buffer_fill.c
@@ -81,7 +81,7 @@ static int check_buffer_underflow_by_byte(int mem_type, int mode,
last_index = 0;
/* Set some value in tagged memory and make the buffer underflow */
for (j = sizes[i] - 1; (j >= -underflow_range) &&
- (cur_mte_cxt.fault_valid == false); j--) {
+ (!cur_mte_cxt.fault_valid); j--) {
ptr[j] = '1';
last_index = j;
}