summaryrefslogtreecommitdiff
path: root/src/openbsd_pci.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu.herrb@laas.fr>2008-11-25 12:42:15 +0100
committerMatthieu Herrb <matthieu.herrb@laas.fr>2008-11-25 12:42:15 +0100
commit8222fb8534cf09e433f0f3d68c35d6c390fbba5e (patch)
treec50bdc9a3527b03378ef63acaecf75e8d5903dc6 /src/openbsd_pci.c
parent613c1e6d09930bab47f2c6983f220df002c2e2ce (diff)
Fix a logic error in pci_device_openbsd_write().
Diffstat (limited to 'src/openbsd_pci.c')
-rw-r--r--src/openbsd_pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openbsd_pci.c b/src/openbsd_pci.c
index 7bb20d6..12547f0 100644
--- a/src/openbsd_pci.c
+++ b/src/openbsd_pci.c
@@ -186,7 +186,7 @@ pci_device_openbsd_write(struct pci_device *dev, const void *data,
{
struct pci_io io;
- if ((offset % 4) == 0 || (size % 4) == 0)
+ if ((offset % 4) != 0 || (size % 4) != 0)
return EINVAL;
io.pi_sel.pc_bus = dev->bus;