]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
crypto: drivers - Drop explicit assigment of 0 in pci_device_id array
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Mon, 4 May 2026 15:32:21 +0000 (17:32 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 15 May 2026 10:08:36 +0000 (18:08 +0800)
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>
drivers/crypto/cavium/cpt/cptvf_main.c
drivers/crypto/cavium/nitrox/nitrox_main.c
drivers/crypto/marvell/octeontx/otx_cptvf_main.c
drivers/crypto/marvell/octeontx2/otx2_cptvf_main.c

index 2c9a2af3887657200df14b703bea4ac7345aa5c3..6af2650b1ebeaf72511ccc449770c44738996a2a 100644 (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 = {
index 8664d97261feb6448bd540817d6ec2a4b5e6a7c2..e474c84d8d3811848a2b2eb72a34e3b75c539990 100644 (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);
 
index 587609db6c69f9149c5bc402481c0faea1d6051f..5cc5c84069a93a7b04cb92eef2673809e0fc7592 100644 (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 = {
index 858f851c9c8adc0556075f8cd7f51609702efd9f..62b08116f80814d8c0257021fd01e26a2aecdc70 100644 (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 = {