summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/crypto/qat/qat_common/adf_dev_mgr.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/crypto/qat/qat_common/adf_dev_mgr.c b/drivers/crypto/qat/qat_common/adf_dev_mgr.c
index 4bd38e362884..b574a82368a4 100644
--- a/drivers/crypto/qat/qat_common/adf_dev_mgr.c
+++ b/drivers/crypto/qat/qat_common/adf_dev_mgr.c
@@ -182,12 +182,7 @@ int adf_devmgr_verify_id(uint32_t id)
void adf_devmgr_get_num_dev(uint32_t *num)
{
- struct list_head *itr;
-
- *num = 0;
- list_for_each(itr, &accel_table) {
- (*num)++;
- }
+ *num = num_devices;
}
int adf_dev_in_use(struct adf_accel_dev *accel_dev)