Merge tag 'threads-v5.7' of git://git.kernel.org/pub/scm/linux/kernel/git/brauner...
[linux-2.6-microblaze.git] / crypto / af_alg.c
index 439367a..b1cd353 100644 (file)
@@ -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;