mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 22:32:43 -04:00
Don't call function in return() for a void function.
This commit is contained in:
parent
024cb40078
commit
cb8e433232
3 changed files with 15 additions and 9 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue