summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2008-12-07 17:58:39 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2008-12-07 17:58:39 +0000
commit2d4ba0b27e968128cb542badc7670f10214d57c8 (patch)
tree9d43298f912dbc0026cbe4e6a8516e49707da998
parent0e169201a1dc6b150da91010538b7a9a9797312b (diff)
Remove trailing white space.
-rw-r--r--lib/libpciaccess/src/openbsd_pci.c14
1 files changed, 7 insertions, 7 deletions
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);