Browse Source

[PATCH] EDAC: e7xxx fix minor logic bug

Fix minor logic bug in e7xxx_remove_one().

Signed-off-by: David S. Peterson <dsp@llnl.gov>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Dave Peterson 19 years ago
parent
commit
d38fde84f7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/edac/e7xxx_edac.c

+ 1 - 1
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);