Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ac110f49 authored by tadeusz.struk@intel.com's avatar tadeusz.struk@intel.com Committed by David S. Miller
Browse files

crypto: algif - fix warn: unsigned 'used' is never less than zero



Change type from unsigned long to int to fix an issue reported by kbuild robot:
crypto/algif_skcipher.c:596 skcipher_recvmsg_async() warn: unsigned 'used' is
never less than zero.

Signed-off-by: default avatarTadeusz Struk <tadeusz.struk@intel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bc14b8d6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -537,7 +537,7 @@ static int skcipher_recvmsg_async(struct socket *sock, struct msghdr *msg,

	while (iov_iter_count(&msg->msg_iter)) {
		struct skcipher_async_rsgl *rsgl;
		unsigned long used;
		int used;

		if (!ctx->used) {
			err = skcipher_wait_for_data(sk, flags);