From: Dave Peterson Date: Sun, 26 Mar 2006 09:38:45 +0000 (-0800) Subject: [PATCH] EDAC: e7xxx fix minor logic bug X-Git-Tag: v2.6.17-rc1~550 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d38fde84f7521973fdfa5c3d03d62f014b42cd03;p=linux-2.6 [PATCH] EDAC: e7xxx fix minor logic bug Fix minor logic bug in e7xxx_remove_one(). Signed-off-by: David S. Peterson Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/edac/e7xxx_edac.c b/drivers/edac/e7xxx_edac.c index 8001797a6b..ec6eb77eda 100644 --- a/drivers/edac/e7xxx_edac.c +++ b/drivers/edac/e7xxx_edac.c @@ -512,7 +512,7 @@ static void __devexit e7xxx_remove_one(struct pci_dev *pdev) debugf0("%s()\n", __func__); if (((mci = edac_mc_find_mci_by_pdev(pdev)) != 0) && - edac_mc_del_mc(mci)) { + !edac_mc_del_mc(mci)) { pvt = (struct e7xxx_pvt *) mci->pvt_info; pci_dev_put(pvt->bridge_ck); edac_mc_free(mci);