Skip to content

Commit

Permalink
crypto: algif - fix warn: unsigned 'used' is never less than zero
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
tstruk authored and davem330 committed Mar 25, 2015
1 parent bc14b8d commit ac110f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/algif_skcipher.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ac110f4

Please sign in to comment.