diff options
author | Salvatore Benedetto <salvatore.benedetto@intel.com> | 2015-10-22 15:23:12 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-11-17 21:58:37 +0800 |
commit | c52b67338937ffee7a4d7225d9cb334ace4279dd (patch) | |
tree | 96476b17be07891bfdd1aa0c5d137b8b23cde124 /drivers/crypto/qat/qat_dh895xccvf | |
parent | d956fed7b68fa1713b7ad0d8e100824cc55afce8 (diff) | |
download | lwn-c52b67338937ffee7a4d7225d9cb334ace4279dd.tar.gz lwn-c52b67338937ffee7a4d7225d9cb334ace4279dd.zip |
crypto: qat - remove superfluous check from adf_probe
- ent->device is already checked at the beginning of the function
against the same value. This check is a duplicate.
Signed-off-by: Salvatore Benedetto <salvatore.benedetto@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/qat/qat_dh895xccvf')
-rw-r--r-- | drivers/crypto/qat/qat_dh895xccvf/adf_drv.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/crypto/qat/qat_dh895xccvf/adf_drv.c b/drivers/crypto/qat/qat_dh895xccvf/adf_drv.c index 789426f21882..7bec249afdb9 100644 --- a/drivers/crypto/qat/qat_dh895xccvf/adf_drv.c +++ b/drivers/crypto/qat/qat_dh895xccvf/adf_drv.c @@ -243,14 +243,7 @@ static int adf_probe(struct pci_dev *pdev, const struct pci_device_id *ent) goto out_err; } accel_dev->hw_device = hw_data; - switch (ent->device) { - case ADF_DH895XCCIOV_PCI_DEVICE_ID: - adf_init_hw_data_dh895xcciov(accel_dev->hw_device); - break; - default: - ret = -ENODEV; - goto out_err; - } + adf_init_hw_data_dh895xcciov(accel_dev->hw_device); /* Get Accelerators and Accelerators Engines masks */ hw_data->accel_mask = hw_data->get_accel_mask(hw_data->fuses); |