From ea5c8de99f71e9983aed80bfa23a7f42df505cfb Mon Sep 17 00:00:00 2001 From: Vijayakumar Badiger Date: Sun, 5 Apr 2020 23:31:54 -0700 Subject: [PATCH] crypto: qce50: fix llvm compilation warnings Compiling kernel with upstream LLVM tool chain gives warning related to bool operator. Change-Id: I0291d7ca7df9141df68305746242cb7c9384d3c7 Signed-off-by: Vijayakumar Badiger --- drivers/crypto/msm/qce50.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/msm/qce50.c b/drivers/crypto/msm/qce50.c index 570b5802808f..3d9b11ca2cf0 100644 --- a/drivers/crypto/msm/qce50.c +++ b/drivers/crypto/msm/qce50.c @@ -1,7 +1,7 @@ /* * QTI Crypto Engine driver. * - * Copyright (c) 2012-2019, The Linux Foundation. All rights reserved. + * Copyright (c) 2012-2020, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and @@ -4676,7 +4676,7 @@ again: pce_dev->intr_cadence = 0; atomic_set(&pce_dev->bunch_cmd_seq, 0); atomic_set(&pce_dev->last_intr_seq, 0); - pce_dev->cadence_flag = ~pce_dev->cadence_flag; + pce_dev->cadence_flag = !pce_dev->cadence_flag; } }