diff options
| -rw-r--r-- | sys/amd64/pci/pci_cfgreg.c | 2 | ||||
| -rw-r--r-- | sys/i386/pci/pci_cfgreg.c | 2 | ||||
| -rw-r--r-- | sys/i386/pci/pci_pir.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/sys/amd64/pci/pci_cfgreg.c b/sys/amd64/pci/pci_cfgreg.c index fac5c32fdf8e..830692222c14 100644 --- a/sys/amd64/pci/pci_cfgreg.c +++ b/sys/amd64/pci/pci_cfgreg.c @@ -717,7 +717,7 @@ pci_cfgenable(unsigned bus, unsigned slot, unsigned func, int reg, int bytes) && reg <= PCI_REGMAX && bytes != 3 && (unsigned) bytes <= 4 - && (reg & (bytes -1)) == 0) { + && (reg & (bytes - 1)) == 0) { switch (cfgmech) { case 1: outl(CONF1_ADDR_PORT, (1 << 31) diff --git a/sys/i386/pci/pci_cfgreg.c b/sys/i386/pci/pci_cfgreg.c index fac5c32fdf8e..830692222c14 100644 --- a/sys/i386/pci/pci_cfgreg.c +++ b/sys/i386/pci/pci_cfgreg.c @@ -717,7 +717,7 @@ pci_cfgenable(unsigned bus, unsigned slot, unsigned func, int reg, int bytes) && reg <= PCI_REGMAX && bytes != 3 && (unsigned) bytes <= 4 - && (reg & (bytes -1)) == 0) { + && (reg & (bytes - 1)) == 0) { switch (cfgmech) { case 1: outl(CONF1_ADDR_PORT, (1 << 31) diff --git a/sys/i386/pci/pci_pir.c b/sys/i386/pci/pci_pir.c index fac5c32fdf8e..830692222c14 100644 --- a/sys/i386/pci/pci_pir.c +++ b/sys/i386/pci/pci_pir.c @@ -717,7 +717,7 @@ pci_cfgenable(unsigned bus, unsigned slot, unsigned func, int reg, int bytes) && reg <= PCI_REGMAX && bytes != 3 && (unsigned) bytes <= 4 - && (reg & (bytes -1)) == 0) { + && (reg & (bytes - 1)) == 0) { switch (cfgmech) { case 1: outl(CONF1_ADDR_PORT, (1 << 31) |
