crypto: drivers - Drop explicit assigment of 0 in pci_device_id array

Assigning .driver_data for drivers that don't use this struct member is
just noise that can better be dropped. The same applies for an explicit
zero in the terminating entry. Drop these.

Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
Uwe Kleine-König (The Capable Hub)
2026-05-04 17:32:21 +02:00
committed by Herbert Xu
parent 15d253c5d7
commit 97d1d35b57
4 changed files with 9 additions and 9 deletions

View File

@@ -835,8 +835,8 @@ static void cptvf_shutdown(struct pci_dev *pdev)
/* Supported devices */
static const struct pci_device_id cptvf_id_table[] = {
{PCI_VDEVICE(CAVIUM, CPT_81XX_PCI_VF_DEVICE_ID), 0},
{ 0, } /* end of table */
{ PCI_VDEVICE(CAVIUM, CPT_81XX_PCI_VF_DEVICE_ID) },
{ } /* end of table */
};
static struct pci_driver cptvf_pci_driver = {

View File

@@ -38,9 +38,9 @@ static unsigned int num_devices;
* nitrox_pci_tbl - PCI Device ID Table
*/
static const struct pci_device_id nitrox_pci_tbl[] = {
{PCI_VDEVICE(CAVIUM, CNN55XX_DEV_ID), 0},
{ PCI_VDEVICE(CAVIUM, CNN55XX_DEV_ID) },
/* required last entry */
{0, }
{ }
};
MODULE_DEVICE_TABLE(pci, nitrox_pci_tbl);

View File

@@ -957,8 +957,8 @@ static void otx_cptvf_remove(struct pci_dev *pdev)
/* Supported devices */
static const struct pci_device_id otx_cptvf_id_table[] = {
{PCI_VDEVICE(CAVIUM, OTX_CPT_PCI_VF_DEVICE_ID), 0},
{ 0, } /* end of table */
{ PCI_VDEVICE(CAVIUM, OTX_CPT_PCI_VF_DEVICE_ID) },
{ } /* end of table */
};
static struct pci_driver otx_cptvf_pci_driver = {

View File

@@ -460,9 +460,9 @@ static void otx2_cptvf_remove(struct pci_dev *pdev)
/* Supported devices */
static const struct pci_device_id otx2_cptvf_id_table[] = {
{PCI_VDEVICE(CAVIUM, OTX2_CPT_PCI_VF_DEVICE_ID), 0},
{PCI_VDEVICE(CAVIUM, CN10K_CPT_PCI_VF_DEVICE_ID), 0},
{ 0, } /* end of table */
{ PCI_VDEVICE(CAVIUM, OTX2_CPT_PCI_VF_DEVICE_ID) },
{ PCI_VDEVICE(CAVIUM, CN10K_CPT_PCI_VF_DEVICE_ID) },
{ } /* end of table */
};
static struct pci_driver otx2_cptvf_pci_driver = {