1
0
Fork 0

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>
wifi-calibration
tadeusz.struk@intel.com 2015-03-25 07:29:19 -07:00 committed by David S. Miller
parent bc14b8d6a9
commit ac110f4954
1 changed files with 1 additions and 1 deletions

View File

@ -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);