diff options
author | stephen hemminger <shemminger@vyatta.com> | 2010-02-12 01:57:58 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-12 19:21:00 -0500 |
commit | 8b05543129a5f216e08625e947a16b844bc4766d (patch) | |
tree | f4a4db38785152add32f4581b44972e70947b9de /drivers/net/sky2.c | |
parent | a63374631e7192a64648ecc6672619a7abf9ebcd (diff) |
sky2: fix sparse warning
Warning about hidden variable
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sky2.c')
-rw-r--r-- | drivers/net/sky2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c index 45299d663498..92f7ba0953ee 100644 --- a/drivers/net/sky2.c +++ b/drivers/net/sky2.c | |||
@@ -3128,7 +3128,7 @@ static void sky2_reset(struct sky2_hw *hw) | |||
3128 | /* check if PSMv2 was running before */ | 3128 | /* check if PSMv2 was running before */ |
3129 | reg = sky2_pci_read16(hw, PSM_CONFIG_REG3); | 3129 | reg = sky2_pci_read16(hw, PSM_CONFIG_REG3); |
3130 | if (reg & PCI_EXP_LNKCTL_ASPMC) { | 3130 | if (reg & PCI_EXP_LNKCTL_ASPMC) { |
3131 | int cap = pci_find_capability(pdev, PCI_CAP_ID_EXP); | 3131 | cap = pci_find_capability(pdev, PCI_CAP_ID_EXP); |
3132 | /* restore the PCIe Link Control register */ | 3132 | /* restore the PCIe Link Control register */ |
3133 | sky2_pci_write16(hw, cap + PCI_EXP_LNKCTL, reg); | 3133 | sky2_pci_write16(hw, cap + PCI_EXP_LNKCTL, reg); |
3134 | } | 3134 | } |