Commit 0a78b599 authored by Jürg Billeter's avatar Jürg Billeter Committed by Peter Hutterer
Browse files

int10: Fix error check for pci_device_map_legacy



pci_device_map_legacy returns 0 on success.
Signed-off-by: default avatarJürg Billeter <j@bitron.ch>
Reviewed-by: Adam Jackson's avatarAdam Jackson <ajax@redhat.com>
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent 21b89693
......@@ -104,7 +104,7 @@ readIntVec(struct pci_device *dev, unsigned char *buf, int len)
{
void *map;
if (!pci_device_map_legacy(dev, 0, len, 0, &map))
if (pci_device_map_legacy(dev, 0, len, 0, &map))
return FALSE;
memcpy(buf, map, len);
......
......@@ -75,7 +75,7 @@ readLegacy(struct pci_device *dev, unsigned char *buf, int base, int len)
{
void *map;
if (!pci_device_map_legacy(dev, base, len, 0, &map))
if (pci_device_map_legacy(dev, base, len, 0, &map))
return FALSE;
memcpy(buf, map, len);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment