[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1335764812-29927-1-git-send-email-Julia.Lawall@lip6.fr>
Date: Mon, 30 Apr 2012 07:46:52 +0200
From: Julia Lawall <Julia.Lawall@...6.fr>
To: Doug Thompson <dougthompson@...ssion.com>
Cc: kernel-janitors@...r.kernel.org, linux-edac@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] drivers/edac/i82875p_edac.c: eliminate double definition
From: Julia Lawall <Julia.Lawall@...6.fr>
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@...6.fr>
---
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists