PCI ASPM: cleanup pcie_aspm_get_cap_device
Minor cleanup for pcie_aspm_get_cap_device(). Acked-by: Shaohua Li <shaohua.li@intel.com> Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
This commit is contained in:
committed by
Jesse Barnes
parent
430842e29d
commit
7ab7099103
@@ -292,12 +292,11 @@ static unsigned int calc_L1_latency(unsigned int latency_encoding, int ac)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void pcie_aspm_get_cap_device(struct pci_dev *pdev, u32 *state,
|
static void pcie_aspm_get_cap_device(struct pci_dev *pdev, u32 *state,
|
||||||
unsigned int *l0s, unsigned int *l1, unsigned int *enabled)
|
u32 *l0s, u32 *l1, u32 *enabled)
|
||||||
{
|
{
|
||||||
int pos;
|
int pos;
|
||||||
u16 reg16;
|
u16 reg16;
|
||||||
u32 reg32;
|
u32 reg32, latency;
|
||||||
unsigned int latency;
|
|
||||||
|
|
||||||
*l0s = *l1 = *enabled = 0;
|
*l0s = *l1 = *enabled = 0;
|
||||||
pos = pci_find_capability(pdev, PCI_CAP_ID_EXP);
|
pos = pci_find_capability(pdev, PCI_CAP_ID_EXP);
|
||||||
|
Reference in New Issue
Block a user