diff options
author | Haowen Bai <baihaowen@meizu.com> | 2022-04-24 10:50:31 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2022-04-29 07:44:58 +0200 |
commit | fd463e980f00a0fc7d7e462bd336efb819c04f9e (patch) | |
tree | 509508f75f0b5a50054d79dc8165f0b57d4e63e7 | |
parent | crypto: ecrdsa - Fix incorrect use of vli_cmp (diff) | |
download | linux-fd463e980f00a0fc7d7e462bd336efb819c04f9e.tar.xz linux-fd463e980f00a0fc7d7e462bd336efb819c04f9e.zip |
crypto: qat - Fix unsigned function returning negative constant
The function qat_uclo_check_image_compat has an unsigned return type, but
returns a negative constant to indicate an error condition. So we change
unsigned to int.
Signed-off-by: Haowen Bai <baihaowen@meizu.com>
Acked-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r-- | drivers/crypto/qat/qat_common/qat_uclo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/qat/qat_common/qat_uclo.c b/drivers/crypto/qat/qat_common/qat_uclo.c index 6356402a2c9e..4b6f37d6e85b 100644 --- a/drivers/crypto/qat/qat_common/qat_uclo.c +++ b/drivers/crypto/qat/qat_common/qat_uclo.c @@ -519,7 +519,7 @@ qat_uclo_map_chunk(char *buf, struct icp_qat_uof_filehdr *file_hdr, return NULL; } -static unsigned int +static int qat_uclo_check_image_compat(struct icp_qat_uof_encap_obj *encap_uof_obj, struct icp_qat_uof_image *image) { |