crypto: qat - Unsigned comparison with less than zero
PATCH 1/1 crypto: qat - Unsigned comparison with less than zero
Fix coccicheck warning:
./drivers/crypto/qat/qat_4xxx/adf_4xxx_hw_data.c:67:5-8: WARNING:
Unsigned expression compared with zero: ret < 0.
Reported-by Abaci Robot <[email protected]>
Signed-off-by Jiapeng Chong <[email protected]>
--- drivers/crypto/qat/qat_4xxx/adf_4xxx_hw_data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/qat/qat_4xxx/adf_4xxx_hw_data.c +1 -1
@@ -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; +int ret; ret =adf_cfg_get_param_value (accel_dev,ADF_GENERAL_SEC ,ADF_SERVICES_ENABLED , services);
Signature · 1 line
2.20.1.7.g153144c
Quoted 7 lines · Jiapeng Chong
Fix coccicheck warning:
./drivers/crypto/qat/qat_4xxx/adf_4xxx_hw_data.c:67:5-8: WARNING:
Unsigned expression compared with zero: ret < 0.Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>
There is already a patch under review that fixes this:
https://marc.info/?l=linux-crypto-vger&m=164138836020725&w=2
Thanks,
Signature · 1 line
Giovanni