From: tadeusz.struk@intel.com Date: Wed, 25 Mar 2015 14:29:19 +0000 (-0700) Subject: crypto: algif - fix warn: unsigned 'used' is never less than zero X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=ac110f4954252b7bbe66268c78c8ece7ac2569b9;p=openwrt%2Fstaging%2Fblogic.git 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: Tadeusz Struk Signed-off-by: David S. Miller --- diff --git a/crypto/algif_skcipher.c b/crypto/algif_skcipher.c index 8276f21ea7be..60496d405ebf 100644 --- a/crypto/algif_skcipher.c +++ b/crypto/algif_skcipher.c @@ -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);