summaryrefslogtreecommitdiffstats
path: root/sys/amd64/pci/pci_cfgreg.c
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/amd64/pci/pci_cfgreg.c
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/amd64/pci/pci_cfgreg.c')
-rw-r--r--sys/amd64/pci/pci_cfgreg.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/amd64/pci/pci_cfgreg.c b/sys/amd64/pci/pci_cfgreg.c
index 536c5a6..86a867b 100644
--- a/sys/amd64/pci/pci_cfgreg.c
+++ b/sys/amd64/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);
}
/*
OpenPOWER on IntegriCloud