Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Haowen Bai and committed by
Herbert Xu
fd463e98 7cc7ab73

+1 -1
+1 -1
drivers/crypto/qat/qat_common/qat_uclo.c
··· 519 519 return NULL; 520 520 } 521 521 522 - static unsigned int 522 + static int 523 523 qat_uclo_check_image_compat(struct icp_qat_uof_encap_obj *encap_uof_obj, 524 524 struct icp_qat_uof_image *image) 525 525 {