From: Uwe Kleine-König (The Capable Hub) Date: Wed, 6 May 2026 14:49:18 +0000 (+0200) Subject: gpio: amd8111: Drop useless zeros in array initialisation X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=87e4643ab19cdfa152b7d10b3418cfff19724109;p=thirdparty%2Fkernel%2Flinux.git gpio: amd8111: Drop useless zeros in array initialisation 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) Link: https://patch.msgid.link/20260506144918.2445358-2-u.kleine-koenig@baylibre.com Signed-off-by: Bartosz Golaszewski --- diff --git a/drivers/gpio/gpio-amd8111.c b/drivers/gpio/gpio-amd8111.c index 15fd5e210d747..8078b5d7b80c9 100644 --- a/drivers/gpio/gpio-amd8111.c +++ b/drivers/gpio/gpio-amd8111.c @@ -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);