summaryrefslogtreecommitdiffstats
path: root/drivers/s390/crypto/zcrypt_api.c
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2017-01-02 09:59:40 +0100
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2017-01-16 07:27:54 +0100
commit970ba6ac6a59ff1f1579e472a97765adc50186f9 (patch)
tree7121c6d5120eb89ee445791d11943aae5c234341 /drivers/s390/crypto/zcrypt_api.c
parent0b92515916799ca2711c7c46abccb96c275cc88a (diff)
downloadlinux-970ba6ac6a59ff1f1579e472a97765adc50186f9.tar.gz
linux-970ba6ac6a59ff1f1579e472a97765adc50186f9.tar.bz2
linux-970ba6ac6a59ff1f1579e472a97765adc50186f9.zip
s390: use false/true when using bool
Yet another trivial patch to reduce the noise that coccinelle generates. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/crypto/zcrypt_api.c')
-rw-r--r--drivers/s390/crypto/zcrypt_api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/s390/crypto/zcrypt_api.c b/drivers/s390/crypto/zcrypt_api.c
index 51eece9af577..919f7aa5a09a 100644
--- a/drivers/s390/crypto/zcrypt_api.c
+++ b/drivers/s390/crypto/zcrypt_api.c
@@ -201,7 +201,7 @@ static inline bool zcrypt_card_compare(struct zcrypt_card *zc,
unsigned weight, unsigned pref_weight)
{
if (!pref_zc)
- return 0;
+ return false;
weight += atomic_read(&zc->load);
pref_weight += atomic_read(&pref_zc->load);
if (weight == pref_weight)
@@ -215,7 +215,7 @@ static inline bool zcrypt_queue_compare(struct zcrypt_queue *zq,
unsigned weight, unsigned pref_weight)
{
if (!pref_zq)
- return 0;
+ return false;
weight += atomic_read(&zq->load);
pref_weight += atomic_read(&pref_zq->load);
if (weight == pref_weight)