diff options
author | 2023-09-14 10:55:46 +0100 | |
---|---|---|
committer | 2023-09-20 13:15:30 +0800 | |
commit | c362a58e8da7828cf1501e1af9d43cd6c9641c5b (patch) | |
tree | af983ea1cfe260504ae30e5c705b1e2c7047b050 /drivers/crypto | |
parent | crypto: qat - fix state machines cleanup paths (diff) | |
download | linux-c362a58e8da7828cf1501e1af9d43cd6c9641c5b.tar.gz linux-c362a58e8da7828cf1501e1af9d43cd6c9641c5b.tar.bz2 linux-c362a58e8da7828cf1501e1af9d43cd6c9641c5b.zip |
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>
Diffstat (limited to 'drivers/crypto')
-rw-r--r-- | drivers/crypto/intel/qat/qat_common/adf_sysfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/crypto/intel/qat/qat_common/adf_sysfs.c b/drivers/crypto/intel/qat/qat_common/adf_sysfs.c index a8f33558d7cb..5e14c374ebd3 100644 --- a/drivers/crypto/intel/qat/qat_common/adf_sysfs.c +++ b/drivers/crypto/intel/qat/qat_common/adf_sysfs.c @@ -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: |