Skip to contentSkip to conversation

crypto: qat - remove redundant function call

PATCH Applied Yang Pingchao 2 participants 2 messages Jan 6, 2016 – Jan 25, 2016 Crypto API

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypto: qat - remove redundant function call

adf_dev_restore(accel_dev) was called in adf_dev_shutdown,no need to call it in adf_device_reset_worker after adf_dev_shutdown was called.

---
 drivers/crypto/qat/qat_common/adf_aer.c | 1 -
 1 file changed, 1 deletion(-)
drivers/crypto/qat/qat_common/adf_aer.c +0 -1
index e78a1d7..b40d9c8 100644
@@ -121,7 +121,6 @@ static void adf_device_reset_worker(struct work_struct *work)
 	adf_dev_restarting_notify(accel_dev);
 	adf_dev_stop(accel_dev);
 	adf_dev_shutdown(accel_dev);
-	adf_dev_restore(accel_dev);
 	if (adf_dev_init(accel_dev) || adf_dev_start(accel_dev)) {
 		/* The device hanged and we can't restart it so stop here */
 		dev_err(&GET_DEV(accel_dev), "Restart device failed\n");
Signature · 1 line
2.6.4
maintainer Applied
#1 lore raw
Quoted 5 lines · Yang Pingchao

adf_dev_restore(accel_dev) was called in adf_dev_shutdown,no need to call it in adf_device_reset_worker after adf_dev_shutdown was called.

Applied.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt