summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/linux_sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/linux_sysfs.c b/src/linux_sysfs.c
index d79404e..1b4051b 100644
--- a/src/linux_sysfs.c
+++ b/src/linux_sysfs.c
@@ -981,7 +981,7 @@ pci_device_linux_sysfs_map_legacy(struct pci_device *dev, pciaddr_t base,
int ret=0;
if (map_flags & PCI_DEV_MAP_FLAG_WRITABLE) {
- flags = O_RDWR; /* O_RDWR != O_WRONLY | O_RDONLY */;
+ flags = O_RDWR; /* O_RDWR != O_WRONLY | O_RDONLY */
prot |= PROT_WRITE;
}