diff options
author | tadeusz.struk@intel.com <tadeusz.struk@intel.com> | 2015-03-25 17:29:19 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-25 18:44:18 +0300 |
commit | ac110f4954252b7bbe66268c78c8ece7ac2569b9 (patch) | |
tree | 922c536dd9270b9fdf1a343cc47526450df16d09 /crypto/algif_skcipher.c | |
parent | bc14b8d6a98eb0747126cd517b468148b9e1c7ac (diff) | |
download | linux-ac110f4954252b7bbe66268c78c8ece7ac2569b9.tar.xz |
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 <tadeusz.struk@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'crypto/algif_skcipher.c')
-rw-r--r-- | crypto/algif_skcipher.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |