]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
gpio: amd8111: Drop useless zeros in array initialisation
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Wed, 6 May 2026 14:49:18 +0000 (16:49 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Thu, 7 May 2026 08:07:05 +0000 (10:07 +0200)
The compiler fills in zeros as needed, so there is no technical reason
to add explicit zeros at the end of a list initializer. Drop them.

Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Link: https://patch.msgid.link/20260506144918.2445358-2-u.kleine-koenig@baylibre.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
drivers/gpio/gpio-amd8111.c

index 15fd5e210d747097ab5e6d380c7447c15a0ecffe..8078b5d7b80c92519402318c87ce40d26abd55e1 100644 (file)
@@ -59,8 +59,8 @@
  * want to register another driver on the same PCI id.
  */
 static const struct pci_device_id pci_tbl[] = {
-       { PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_8111_SMBUS), 0 },
-       { 0, }, /* terminate list */
+       { PCI_DEVICE(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_8111_SMBUS) },
+       { },    /* terminate list */
 };
 MODULE_DEVICE_TABLE(pci, pci_tbl);