summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorYANG LI <abaci-bugfix@linux.alibaba.com>2021-01-11 10:35:37 +0100
committerWill Deacon <will@kernel.org>2021-01-20 13:44:26 +0100
commitdd313a2653d442f015e82706f6b185a881772101 (patch)
tree3e8747a5beb4a4e23a0a18e05be5c9e94f18f7fe /tools
parentLinux 5.11-rc4 (diff)
downloadlinux-dd313a2653d442f015e82706f6b185a881772101.tar.xz
linux-dd313a2653d442f015e82706f6b185a881772101.zip
arm64: mte: style: Simplify bool comparison
Fix the following coccicheck warning: ./tools/testing/selftests/arm64/mte/check_buffer_fill.c:84:12-35: WARNING: Comparison to bool Signed-off-by: YANG LI <abaci-bugfix@linux.alibaba.com> Reported-by: Abaci Robot<abaci@linux.alibaba.com> Link: https://lore.kernel.org/r/1610357737-68678-1-git-send-email-abaci-bugfix@linux.alibaba.com Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'tools')
-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;
}