aboutsummaryrefslogtreecommitdiff
path: root/sys/i386/pci
diff options
context:
space:
mode:
Diffstat (limited to 'sys/i386/pci')
-rw-r--r--sys/i386/pci/pci_cfgreg.c2
-rw-r--r--sys/i386/pci/pci_pir.c2
2 files changed, 2 insertions, 2 deletions
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)