Commit 8b055431 authored by stephen hemminger's avatar stephen hemminger Committed by David S. Miller

sky2: fix sparse warning

Warning about hidden variable
Signed-off-by: default avatarStephen Hemminger <shemminger@vyatta.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a6337463
...@@ -3128,7 +3128,7 @@ static void sky2_reset(struct sky2_hw *hw) ...@@ -3128,7 +3128,7 @@ static void sky2_reset(struct sky2_hw *hw)
/* check if PSMv2 was running before */ /* check if PSMv2 was running before */
reg = sky2_pci_read16(hw, PSM_CONFIG_REG3); reg = sky2_pci_read16(hw, PSM_CONFIG_REG3);
if (reg & PCI_EXP_LNKCTL_ASPMC) { if (reg & PCI_EXP_LNKCTL_ASPMC) {
int cap = pci_find_capability(pdev, PCI_CAP_ID_EXP); cap = pci_find_capability(pdev, PCI_CAP_ID_EXP);
/* restore the PCIe Link Control register */ /* restore the PCIe Link Control register */
sky2_pci_write16(hw, cap + PCI_EXP_LNKCTL, reg); sky2_pci_write16(hw, cap + PCI_EXP_LNKCTL, reg);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment