Fix a logic error in pci_device_openbsd_write() that actually
prevented it to write anything.
This commit is contained in:
parent
3a0e900dcf
commit
63f16983cf
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user