Fix a logic error in pci_device_openbsd_write() that actually

prevented it to write anything.
This commit is contained in:
matthieu 2008-11-25 11:40:56 +00:00
parent 3a0e900dcf
commit 63f16983cf

View File

@ -220,7 +220,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;