summaryrefslogtreecommitdiffstats
path: root/drivers/net/sky2.c
diff options
context:
space:
mode:
authorstephen hemminger <shemminger@vyatta.com>2010-02-12 06:57:58 +0000
committerDavid S. Miller <davem@davemloft.net>2010-02-12 16:21:00 -0800
commit8b05543129a5f216e08625e947a16b844bc4766d (patch)
treef4a4db38785152add32f4581b44972e70947b9de /drivers/net/sky2.c
parenta63374631e7192a64648ecc6672619a7abf9ebcd (diff)
downloadop-kernel-dev-8b05543129a5f216e08625e947a16b844bc4766d.zip
op-kernel-dev-8b05543129a5f216e08625e947a16b844bc4766d.tar.gz
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c
index 45299d6..92f7ba0 100644
--- a/drivers/net/sky2.c
+++ b/drivers/net/sky2.c
@@ -3128,7 +3128,7 @@ static void sky2_reset(struct sky2_hw *hw)
/* check if PSMv2 was running before */
reg = sky2_pci_read16(hw, PSM_CONFIG_REG3);
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 */
sky2_pci_write16(hw, cap + PCI_EXP_LNKCTL, reg);
}
OpenPOWER on IntegriCloud