From: Haowen Bai Date: Sun, 24 Apr 2022 08:50:31 +0000 (+0800) Subject: crypto: qat - Fix unsigned function returning negative constant X-Git-Tag: v5.19-rc1~112^2~49 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fd463e980f00a0fc7d7e462bd336efb819c04f9e;p=thirdparty%2Flinux.git 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 Acked-by: Giovanni Cabiddu Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/qat/qat_common/qat_uclo.c b/drivers/crypto/qat/qat_common/qat_uclo.c index 6356402a2c9e8..4b6f37d6e85b5 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) {