[PATCH] drivers/edac/i82875p_edac.c: eliminate double definition

From: Julia Lawall
Date: Mon Apr 30 2012 - 01:47:42 EST


From: Julia Lawall <Julia.Lawall@xxxxxxx>

The first thing that i82875p_setup_overfl_dev does is overwrite the value
of ovrfl_pdev and perform the same call to pci_get_device as is done here.

Signed-off-by: Julia Lawall <Julia.Lawall@xxxxxxx>

---
drivers/edac/i82875p_edac.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/drivers/edac/i82875p_edac.c b/drivers/edac/i82875p_edac.c
index 10f15d8..22ecc54 100644
--- a/drivers/edac/i82875p_edac.c
+++ b/drivers/edac/i82875p_edac.c
@@ -391,8 +391,6 @@ static int i82875p_probe1(struct pci_dev *pdev, int dev_idx)

debugf0("%s()\n", __func__);

- ovrfl_pdev = pci_get_device(PCI_VEND_DEV(INTEL, 82875_6), NULL);
-
if (i82875p_setup_overfl_dev(pdev, &ovrfl_pdev, &ovrfl_window))
return -ENODEV;
drc = readl(ovrfl_window + I82875P_DRC);

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/