From 8b05543129a5f216e08625e947a16b844bc4766d Mon Sep 17 00:00:00 2001 From: stephen hemminger Date: Fri, 12 Feb 2010 06:57:58 +0000 Subject: [PATCH] sky2: fix sparse warning Warning about hidden variable Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller --- drivers/net/sky2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) /* 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); } -- 2.20.1