diff options
author | Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com> | 2010-08-20 04:32:05 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-10-24 11:20:40 -0200 |
commit | 73589c80cd0dab94db50800c4834a8d8522cd54f (patch) | |
tree | c8c546cf434e44251ca637cc0f7f5961fa58ae5c /drivers/edac | |
parent | 71fe01706d631513bdbd73381f4b76dacea5cf77 (diff) |
i7core_edac: Use saved pointers
We already have saved pointers. Use shorter ones.
Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/edac')
-rw-r--r-- | drivers/edac/i7core_edac.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/edac/i7core_edac.c b/drivers/edac/i7core_edac.c index 472fa375f1e..7ee5034100b 100644 --- a/drivers/edac/i7core_edac.c +++ b/drivers/edac/i7core_edac.c @@ -2099,7 +2099,7 @@ static void __devexit i7core_remove(struct pci_dev *pdev) } list_for_each_entry(i7core_dev, &i7core_edac_list, list) { - mci = find_mci_by_dev(&i7core_dev->pdev[0]->dev); + mci = i7core_dev->mci; if (unlikely(!mci || !mci->pvt_info)) { debugf0("MC: " __FILE__ ": %s(): dev = %p\n", __func__, &i7core_dev->pdev[0]->dev); @@ -2108,7 +2108,6 @@ static void __devexit i7core_remove(struct pci_dev *pdev) "Couldn't find mci hanler\n"); } else { pvt = mci->pvt_info; - i7core_dev = pvt->i7core_dev; debugf0("MC: " __FILE__ ": %s(): mci = %p, dev = %p\n", __func__, mci, &i7core_dev->pdev[0]->dev); @@ -2120,7 +2119,7 @@ static void __devexit i7core_remove(struct pci_dev *pdev) i7core_pci_ctl_release(pvt); /* Remove MC sysfs nodes */ - edac_mc_del_mc(&i7core_dev->pdev[0]->dev); + edac_mc_del_mc(mci->dev); debugf1("%s: free mci struct\n", mci->ctl_name); kfree(mci->ctl_name); |