summaryrefslogtreecommitdiff
path: root/crypto/algif_skcipher.c
diff options
context:
space:
mode:
authortadeusz.struk@intel.com <tadeusz.struk@intel.com>2015-03-25 07:29:19 -0700
committerDavid S. Miller <davem@davemloft.net>2015-03-25 11:44:18 -0400
commitf7b608ae7c094394322e22d3a95553ee58ef1292 (patch)
treef0d287755d09d80a302d47d427025f15eb0d552f /crypto/algif_skcipher.c
parentf2b5e99d5f18373bd3f654e3e617cba1074dd8d7 (diff)
downloadlinux-crypto-f7b608ae7c094394322e22d3a95553ee58ef1292.tar.gz
linux-crypto-f7b608ae7c094394322e22d3a95553ee58ef1292.zip
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/algif_skcipher.c b/crypto/algif_skcipher.c
index 8276f21e..60496d40 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);