diff mbox series

[08/13] pci-quirk: Fix initiliser warning

Message ID 20180502083753.25090-9-joel@jms.id.au
State Superseded
Headers show
Series Support building with clang | expand

Commit Message

Joel Stanley May 2, 2018, 8:37 a.m. UTC
core/pci-quirk.c:70:7: warning: missing field 'vendor_id' initializer
      [-Wmissing-field-initializers]
        {NULL}
             ^
Instead use an empty initaliser, as this is what the kernel does.

Signed-off-by: Joel Stanley <joel@jms.id.au>
---
 core/pci-quirk.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/core/pci-quirk.c b/core/pci-quirk.c
index 0153bdb8435b..ada314d2d54d 100644
--- a/core/pci-quirk.c
+++ b/core/pci-quirk.c
@@ -67,7 +67,7 @@  static void quirk_astbmc_vga(struct phb *phb __unused,
 static const struct pci_quirk quirk_table[] = {
 	/* ASPEED 2400 VGA device */
 	{ &quirk_astbmc_vga, 0x1a03, 0x2000 },
-	{NULL}
+	{ }
 };
 
 void pci_handle_quirk(struct phb *phb, struct pci_device *pd)