diff options
author | Bruce Allan <bruce.w.allan@intel.com> | 2015-07-24 23:18:25 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-07-28 10:03:32 +0300 |
commit | 5995752eadfd64edece5810b6fb0639806726594 (patch) | |
tree | 5b1c4aeb226f394dba6002bc7039677cf60c2b79 /drivers/crypto/qat/qat_dh895xcc/adf_drv.c | |
parent | 03952d98015326a07ae1cf7adb4c43265ec4058f (diff) | |
download | linux-5995752eadfd64edece5810b6fb0639806726594.tar.xz |
crypto: qat - remove redundant struct elem
The element pci_dev_id in the struct adf_hw_device_data is redundant since
the PCI device id can be retrieved from the struct pci_dev.
Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/qat/qat_dh895xcc/adf_drv.c')
-rw-r--r-- | drivers/crypto/qat/qat_dh895xcc/adf_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/qat/qat_dh895xcc/adf_drv.c b/drivers/crypto/qat/qat_dh895xcc/adf_drv.c index d241037f8728..4abeca1b1c33 100644 --- a/drivers/crypto/qat/qat_dh895xcc/adf_drv.c +++ b/drivers/crypto/qat/qat_dh895xcc/adf_drv.c @@ -100,7 +100,7 @@ static void adf_cleanup_accel(struct adf_accel_dev *accel_dev) } if (accel_dev->hw_device) { - switch (accel_dev->hw_device->pci_dev_id) { + switch (accel_pci_dev->pci_dev->device) { case ADF_DH895XCC_PCI_DEVICE_ID: adf_clean_hw_data_dh895xcc(accel_dev->hw_device); break; |