summaryrefslogtreecommitdiff
path: root/crypto/af_alg.c
diff options
context:
space:
mode:
authorLothar Rubusch <l.rubusch@gmail.com>2020-03-20 11:36:31 +0000
committerHerbert Xu <herbert@gondor.apana.org.au>2020-03-30 11:50:50 +1100
commit644ed80e48888bc0b3bf17f8d9dd9d8296c174bc (patch)
tree1e80b9984612d3611f38e11e4279f2f70e213599 /crypto/af_alg.c
parentf91b1710f65afa672d53ad87665da07eb36d1b8e (diff)
downloadlinux-crypto-644ed80e48888bc0b3bf17f8d9dd9d8296c174bc.tar.gz
linux-crypto-644ed80e48888bc0b3bf17f8d9dd9d8296c174bc.zip
crypto: af_alg - bool type cosmetics
When working with bool values the true and false definitions should be used instead of 1 and 0. Hopefully I fixed my mailer and apologize for that. Signed-off-by: Lothar Rubusch <l.rubusch@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/af_alg.c')
-rw-r--r--crypto/af_alg.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/crypto/af_alg.c b/crypto/af_alg.c
index 439367a8..b1cd3535 100644
--- a/crypto/af_alg.c
+++ b/crypto/af_alg.c
@@ -821,8 +821,8 @@ int af_alg_sendmsg(struct socket *sock, struct msghdr *msg, size_t size,
struct af_alg_tsgl *sgl;
struct af_alg_control con = {};
long copied = 0;
- bool enc = 0;
- bool init = 0;
+ bool enc = false;
+ bool init = false;
int err = 0;
if (msg->msg_controllen) {
@@ -830,13 +830,13 @@ int af_alg_sendmsg(struct socket *sock, struct msghdr *msg, size_t size,
if (err)
return err;
- init = 1;
+ init = true;
switch (con.op) {
case ALG_OP_ENCRYPT:
- enc = 1;
+ enc = true;
break;
case ALG_OP_DECRYPT:
- enc = 0;
+ enc = false;
break;
default:
return -EINVAL;