Don't call function in return() for a void function.

This commit is contained in:
Poul-Henning Kamp 2002-09-28 17:36:29 +00:00
parent 024cb40078
commit cb8e433232
3 changed files with 15 additions and 9 deletions

View File

@ -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);
}
/*

View File

@ -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);
}
/*

View File

@ -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);
}
/*