PCI: hv: Use zero-length array in struct pci_packet
authorDexuan Cui <decui@microsoft.com>
Tue, 23 Aug 2016 04:45:51 +0000 (04:45 +0000)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 6 Sep 2016 17:15:46 +0000 (12:15 -0500)
commit0c6045d8c0eff0f7784f310407ccad44f622aa40
tree6d4633aea8fbbae1df765abff37fd60177f9324f
parent4f1cb01a7892582d18483986fbc268cdef1b1dee
PCI: hv: Use zero-length array in struct pci_packet

Use zero-length array in struct pci_packet and rename struct pci_message's
field "message_type" to "type".  This makes the code more readable.

No functionality change.

Signed-off-by: Dexuan Cui <decui@microsoft.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: KY Srinivasan <kys@microsoft.com>
CC: Jake Oshins <jakeo@microsoft.com>
CC: Haiyang Zhang <haiyangz@microsoft.com>
CC: Vitaly Kuznetsov <vkuznets@redhat.com>
drivers/pci/host/pci-hyperv.c