mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 06:33:07 +00:00
crypto: qat - do not shadow error code
Do not shadow the return code from adf_dev_down() in the error path of the DEV_DOWN command. Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com> Reviewed-by: Adam Guerin <adam.guerin@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
c9ca9756f3
commit
c362a58e8d
1 changed files with 2 additions and 2 deletions
|
@ -60,8 +60,8 @@ static ssize_t state_store(struct device *dev, struct device_attribute *attr,
|
|||
}
|
||||
|
||||
ret = adf_dev_down(accel_dev, true);
|
||||
if (ret < 0)
|
||||
return -EINVAL;
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
break;
|
||||
case DEV_UP:
|
||||
|
|
Loading…
Reference in a new issue