[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1647569459-18376-1-git-send-email-baihaowen@meizu.com>
Date: Fri, 18 Mar 2022 10:10:59 +0800
From: Haowen Bai <baihaowen@...zu.com>
To: <giovanni.cabiddu@...el.com>, <herbert@...dor.apana.org.au>,
<davem@...emloft.net>, <marco.chiappero@...el.com>,
<fiona.trahe@...el.com>, <wojciech.ziemba@...el.com>
CC: <qat-linux@...el.com>, <linux-crypto@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, Haowen Bai <baihaowen@...zu.com>
Subject: [PATCH] crypto: qat: Fix unsigned comparison with less than zero
drivers/crypto/qat/qat_4xxx/adf_4xxx_hw_data.c:67:5-8: WARNING: Unsigned expression compared with zero: ret < 0
Signed-off-by: Haowen Bai <baihaowen@...zu.com>
---
drivers/crypto/qat/qat_4xxx/adf_4xxx_hw_data.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/crypto/qat/qat_4xxx/adf_4xxx_hw_data.c b/drivers/crypto/qat/qat_4xxx/adf_4xxx_hw_data.c
index 6d10edc..0143835 100644
--- a/drivers/crypto/qat/qat_4xxx/adf_4xxx_hw_data.c
+++ b/drivers/crypto/qat/qat_4xxx/adf_4xxx_hw_data.c
@@ -52,7 +52,7 @@ static const char *const dev_cfg_services[] = {
static int get_service_enabled(struct adf_accel_dev *accel_dev)
{
char services[ADF_CFG_MAX_VAL_LEN_IN_BYTES] = {0};
- u32 ret;
+ s32 ret;
ret = adf_cfg_get_param_value(accel_dev, ADF_GENERAL_SEC,
ADF_SERVICES_ENABLED, services);
--
2.7.4
Powered by blists - more mailing lists