]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: hv: Use pci_function_description[0] in struct definitions
authorDexuan Cui <decui@microsoft.com>
Tue, 23 Aug 2016 04:46:39 +0000 (04:46 +0000)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 6 Sep 2016 17:20:44 +0000 (12:20 -0500)
commitaf4c405862068864009f544812692a8bd7e608ca
treeaf6e352380a79fb63895566ea0afff775b1415a4
parent67267d98d6db6f4ad8c35e94efca73052afb3e7a
PCI: hv: Use pci_function_description[0] in struct definitions

The 2 structs can use a zero-length array here, because dynamic memory of
the correct size is allocated in hv_pci_devices_present() and we don't need
this extra element.

No functional 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