]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
s390/ism: Drop superfluous zeros in pci_device_id array
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Fri, 22 May 2026 15:30:09 +0000 (17:30 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 26 May 2026 13:39:44 +0000 (15:39 +0200)
The .driver_data member of the struct pci_device_id array were
initialized by a list expressions to zero without making use of that
value. In this case it's better to not specify a value at all and let
the compiler fill in the zeros. Same for the list terminator that can
better be completely empty.

This patch doesn't introduce changes to the compiled array.

Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Reviewed-by: Breno Leitao <leitao@debian.org>
Acked-by: Alexandra Winter <wintera@linux.ibm.com>
Link: https://patch.msgid.link/20260522153010.777081-2-u.kleine-koenig@baylibre.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/s390/net/ism_drv.c

index 7d0479e4e09561b23699ec96527c37c6b52fdf83..d99c588d3e00ce209be76e6e46d3bd8232a92a37 100644 (file)
@@ -23,8 +23,8 @@ MODULE_LICENSE("GPL");
 #define DRV_NAME "ism"
 
 static const struct pci_device_id ism_device_table[] = {
-       { PCI_VDEVICE(IBM, PCI_DEVICE_ID_IBM_ISM), 0 },
-       { 0, }
+       { PCI_VDEVICE(IBM, PCI_DEVICE_ID_IBM_ISM) },
+       { }
 };
 MODULE_DEVICE_TABLE(pci, ism_device_table);