Commit 3bf319a7 authored by Auke Kok's avatar Auke Kok Committed by Jeff Garzik

e1000e: remove unused read value in ASPM disable code.

Signed-off-by: default avatarAuke Kok <auke-jan.h.kok@intel.com>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent 489815ce
...@@ -3490,7 +3490,6 @@ static int e1000_suspend(struct pci_dev *pdev, pm_message_t state) ...@@ -3490,7 +3490,6 @@ static int e1000_suspend(struct pci_dev *pdev, pm_message_t state)
static void e1000e_disable_l1aspm(struct pci_dev *pdev) static void e1000e_disable_l1aspm(struct pci_dev *pdev)
{ {
int pos; int pos;
u32 cap;
u16 val; u16 val;
/* /*
...@@ -3505,7 +3504,6 @@ static void e1000e_disable_l1aspm(struct pci_dev *pdev) ...@@ -3505,7 +3504,6 @@ static void e1000e_disable_l1aspm(struct pci_dev *pdev)
* active. * active.
*/ */
pos = pci_find_capability(pdev, PCI_CAP_ID_EXP); pos = pci_find_capability(pdev, PCI_CAP_ID_EXP);
pci_read_config_dword(pdev, pos + PCI_EXP_LNKCAP, &cap);
pci_read_config_word(pdev, pos + PCI_EXP_LNKCTL, &val); pci_read_config_word(pdev, pos + PCI_EXP_LNKCTL, &val);
if (val & 0x2) { if (val & 0x2) {
dev_warn(&pdev->dev, "Disabling L1 ASPM\n"); dev_warn(&pdev->dev, "Disabling L1 ASPM\n");
......
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