Skip to content

Commit 538c626

Browse files
committed
crypto: qat - remove unused adf_devmgr_get_first
JIRA: https://issues.redhat.com/browse/RHEL-52749 Upstream Status: merged into herbert/crypto-2.6.git commit 4fbc133 Author: Dr. David Alan Gilbert <linux@treblig.org> Date: Sun Sep 29 02:24:41 2024 +0100 crypto: qat - remove unused adf_devmgr_get_first adf_devmgr_get_first has been unused since commit 4a4b0ba ("crypto: qat - fix crypto_get_instance_node function") Remove it. (Build tested only, I don't own the hardware) Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org> Acked-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Vladis Dronov <vdronov@redhat.com>
1 parent 5c0992a commit 538c626

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

drivers/crypto/intel/qat/qat_common/adf_common_drv.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ void adf_devmgr_rm_dev(struct adf_accel_dev *accel_dev,
6969
struct adf_accel_dev *pf);
7070
struct list_head *adf_devmgr_get_head(void);
7171
struct adf_accel_dev *adf_devmgr_get_dev_by_id(u32 id);
72-
struct adf_accel_dev *adf_devmgr_get_first(void);
7372
struct adf_accel_dev *adf_devmgr_pci_to_accel_dev(struct pci_dev *pci_dev);
7473
int adf_devmgr_verify_id(u32 id);
7574
void adf_devmgr_get_num_dev(u32 *num);

drivers/crypto/intel/qat/qat_common/adf_dev_mgr.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -276,16 +276,6 @@ void adf_devmgr_rm_dev(struct adf_accel_dev *accel_dev,
276276
}
277277
EXPORT_SYMBOL_GPL(adf_devmgr_rm_dev);
278278

279-
struct adf_accel_dev *adf_devmgr_get_first(void)
280-
{
281-
struct adf_accel_dev *dev = NULL;
282-
283-
if (!list_empty(&accel_table))
284-
dev = list_first_entry(&accel_table, struct adf_accel_dev,
285-
list);
286-
return dev;
287-
}
288-
289279
/**
290280
* adf_devmgr_pci_to_accel_dev() - Get accel_dev associated with the pci_dev.
291281
* @pci_dev: Pointer to PCI device.

0 commit comments

Comments
 (0)