Skip to content

Commit

Permalink
[CRYPTO] api: Fixed crypto_*_reqsize return type
Browse files Browse the repository at this point in the history
This patch changes the return type of crypto_*_reqsize from int to
unsigned int which matches what the underlying type is (and should
be).

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
Herbert Xu authored and David S. Miller committed Oct 10, 2007
1 parent 5fa0fea commit b16c3a2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/linux/crypto.h
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,8 @@ static inline int crypto_ablkcipher_decrypt(struct ablkcipher_request *req)
return crt->decrypt(req);
}

static inline int crypto_ablkcipher_reqsize(struct crypto_ablkcipher *tfm)
static inline unsigned int crypto_ablkcipher_reqsize(
struct crypto_ablkcipher *tfm)
{
return crypto_ablkcipher_crt(tfm)->reqsize;
}
Expand Down Expand Up @@ -766,7 +767,7 @@ static inline int crypto_aead_decrypt(struct aead_request *req)
return crypto_aead_crt(crypto_aead_reqtfm(req))->decrypt(req);
}

static inline int crypto_aead_reqsize(struct crypto_aead *tfm)
static inline unsigned int crypto_aead_reqsize(struct crypto_aead *tfm)
{
return crypto_aead_crt(tfm)->reqsize;
}
Expand Down

0 comments on commit b16c3a2

Please sign in to comment.