crypto: qat - Fix unsigned function returning negative constant
authorHaowen Bai <baihaowen@meizu.com>
Sun, 24 Apr 2022 08:50:31 +0000 (16:50 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 29 Apr 2022 05:44:58 +0000 (13:44 +0800)
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>
drivers/crypto/qat/qat_common/qat_uclo.c

index 6356402..4b6f37d 100644 (file)
@@ -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)
 {