hw/isa/piix4.c: Introduce variable to store devfn
commit902283c1df32de3a08b6410aad7a738d179dc8af
authorBALATON Zoltan <balaton@eik.bme.hu>
Tue, 17 Mar 2020 15:05:37 +0000 (17 16:05 +0100)
committerJohn Snow <jsnow@redhat.com>
Tue, 17 Mar 2020 16:22:36 +0000 (17 12:22 -0400)
tree6bfb8f73aa580461820e54e3533e52cf80c42ec5
parentdf45d38f7328219a709047ebf3b726d0f4ba4ee7
hw/isa/piix4.c: Introduce variable to store devfn

To avoid any problem with reassigning pci variable store devfn in a
variable instead of acessing it from the PCIDevice.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 1020e0bfcfc6e364f967ccb2a9a3778ac174ccbe.1584457537.git.balaton@eik.bme.hu
Signed-off-by: John Snow <jsnow@redhat.com>
hw/isa/piix4.c