compat/freebsd_network: Fix dead store
Fix value stored to 'newPowerManagementStatus' is never read. Pointed out by Clang Static Analyzer. It seems FreeBSD's pci_set_powerstate_method() writes 'status' (newPowerManagementStatus in Haiku) with PCI_WRITE_CONFIG (pci_write_config in Haiku). Change-Id: I9b11f746ed8e772a3f839e1bd5a6b432c9e8ff6b Reviewed-on: https://review.haiku-os.org/c/haiku/+/3513 Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
parent
7dec2bff46
commit
44e4aca7cc
@ -1002,8 +1002,8 @@ pci_set_powerstate(device_t dev, int newPowerState)
|
||||
}
|
||||
|
||||
TRACE_PCI(dev, "%s: D%i -> D%i\n", __func__, oldPowerState, newPowerState);
|
||||
pci_write_config(dev, capabilityRegister + PCIR_POWER_STATUS, newPowerState,
|
||||
2);
|
||||
pci_write_config(dev, capabilityRegister + PCIR_POWER_STATUS,
|
||||
newPowerManagementStatus, 2);
|
||||
if (stateTransitionDelayInUs != 0)
|
||||
snooze(stateTransitionDelayInUs);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user