summaryrefslogtreecommitdiffstats
path: root/sys/i386/pci
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-09-28 17:36:29 +0000
committerphk <phk@FreeBSD.org>2002-09-28 17:36:29 +0000
commit825608e64698f29468c113516b1be260fc7a9722 (patch)
tree82730065e19c313700deaa2a2cc5ae6432ae0662 /sys/i386/pci
parent87e8f8a0c1322a9dd2c0e2334b933c6d86fe4785 (diff)
downloadFreeBSD-src-825608e64698f29468c113516b1be260fc7a9722.zip
FreeBSD-src-825608e64698f29468c113516b1be260fc7a9722.tar.gz
Don't call function in return() for a void function.
Diffstat (limited to 'sys/i386/pci')
-rw-r--r--sys/i386/pci/pci_cfgreg.c8
-rw-r--r--sys/i386/pci/pci_pir.c8
2 files changed, 10 insertions, 6 deletions
diff --git a/sys/i386/pci/pci_cfgreg.c b/sys/i386/pci/pci_cfgreg.c
index 536c5a6..86a867b 100644
--- a/sys/i386/pci/pci_cfgreg.c
+++ b/sys/i386/pci/pci_cfgreg.c
@@ -266,9 +266,11 @@ pci_cfgregread(int bus, int slot, int func, int reg, int bytes)
void
pci_cfgregwrite(int bus, int slot, int func, int reg, u_int32_t data, int bytes)
{
- return (usebios ?
- pcibios_cfgwrite(bus, slot, func, reg, data, bytes) :
- pcireg_cfgwrite(bus, slot, func, reg, data, bytes));
+
+ if (usebios)
+ pcibios_cfgwrite(bus, slot, func, reg, data, bytes);
+ else
+ pcireg_cfgwrite(bus, slot, func, reg, data, bytes);
}
/*
diff --git a/sys/i386/pci/pci_pir.c b/sys/i386/pci/pci_pir.c
index 536c5a6..86a867b 100644
--- a/sys/i386/pci/pci_pir.c
+++ b/sys/i386/pci/pci_pir.c
@@ -266,9 +266,11 @@ pci_cfgregread(int bus, int slot, int func, int reg, int bytes)
void
pci_cfgregwrite(int bus, int slot, int func, int reg, u_int32_t data, int bytes)
{
- return (usebios ?
- pcibios_cfgwrite(bus, slot, func, reg, data, bytes) :
- pcireg_cfgwrite(bus, slot, func, reg, data, bytes));
+
+ if (usebios)
+ pcibios_cfgwrite(bus, slot, func, reg, data, bytes);
+ else
+ pcireg_cfgwrite(bus, slot, func, reg, data, bytes);
}
/*
OpenPOWER on IntegriCloud