From 2d4ba0b27e968128cb542badc7670f10214d57c8 Mon Sep 17 00:00:00 2001 From: Matthieu Herrb Date: Sun, 7 Dec 2008 17:58:39 +0000 Subject: Remove trailing white space. --- lib/libpciaccess/src/openbsd_pci.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'lib/libpciaccess/src') diff --git a/lib/libpciaccess/src/openbsd_pci.c b/lib/libpciaccess/src/openbsd_pci.c index 1046c3ef7..b7348e4c1 100644 --- a/lib/libpciaccess/src/openbsd_pci.c +++ b/lib/libpciaccess/src/openbsd_pci.c @@ -91,19 +91,19 @@ pci_device_openbsd_read_rom(struct pci_device *device, void *buffer) bus = device->bus; dev = device->dev; func = device->func; - + if (aperturefd == -1) return ENOSYS; if (priv->base.rom_size == 0) { #if defined(__alpha__) || defined(__amd64__) || defined(__i386__) if ((device->device_class & 0x00ffff00) == - ((PCI_CLASS_DISPLAY << 16) | + ((PCI_CLASS_DISPLAY << 16) | (PCI_SUBCLASS_DISPLAY_VGA << 8))) { rom_base = 0xc0000; rom_size = 0x10000; pci_rom = 0; - } else + } else #endif return ENOSYS; } else { @@ -118,7 +118,7 @@ pci_device_openbsd_read_rom(struct pci_device *device, void *buffer) pci_write(bus, dev, func, PCI_ROM_REG, rom | PCI_ROM_ENABLE); } - bios = mmap(NULL, rom_size, PROT_READ, MAP_SHARED, + bios = mmap(NULL, rom_size, PROT_READ, MAP_SHARED, aperturefd, (off_t)rom_base); if (bios == MAP_FAILED) return errno; @@ -261,7 +261,7 @@ pci_device_openbsd_write(struct pci_device *dev, const void *data, io.pi_width = 4; memcpy(&io.pi_data, data, 4); - if (ioctl(pcifd, PCIOCWRITE, &io) == -1) + if (ioctl(pcifd, PCIOCWRITE, &io) == -1) return errno; offset += 4; @@ -370,7 +370,7 @@ pci_device_openbsd_probe(struct pci_device *device) return err; pci_read(bus, dev, func, PCI_ROM_REG, &size); pci_write(bus, dev, func, PCI_ROM_REG, reg); - + if (PCI_ROM_ADDR(reg) != 0) { priv->rom_base = PCI_ROM_ADDR(reg); device->rom_size = PCI_ROM_SIZE(size); @@ -398,7 +398,7 @@ pci_system_openbsd_create(void) int bus, dev, func, ndevs, nfuncs; uint32_t reg; - if (pcifd != -1) + if (pcifd != -1) return 0; pcifd = open("/dev/pci", O_RDWR); -- cgit v1.2.3