Commit 844318df authored by Dan Carpenter's avatar Dan Carpenter Committed by Herbert Xu

crypto: qat - fix a signedness bug in get_service_enabled()

The "ret" variable needs to be signed or there is an error message which
will not be printed correctly.

Fixes: 0cec19c7 ("crypto: qat - add support for compression for 4xxx")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarGiovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 1e1ec11d
...@@ -52,7 +52,7 @@ static const char *const dev_cfg_services[] = { ...@@ -52,7 +52,7 @@ static const char *const dev_cfg_services[] = {
static int get_service_enabled(struct adf_accel_dev *accel_dev) static int get_service_enabled(struct adf_accel_dev *accel_dev)
{ {
char services[ADF_CFG_MAX_VAL_LEN_IN_BYTES] = {0}; 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, ret = adf_cfg_get_param_value(accel_dev, ADF_GENERAL_SEC,
ADF_SERVICES_ENABLED, services); ADF_SERVICES_ENABLED, services);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment