[PATCH] EDAC: e7xxx fix minor logic bug
authorDave Peterson <dsp@llnl.gov>
Sun, 26 Mar 2006 09:38:45 +0000 (01:38 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 26 Mar 2006 16:57:07 +0000 (08:57 -0800)
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>
drivers/edac/e7xxx_edac.c

index 8001797a6bc5ed130dbf08bda72ba6cdec054090..ec6eb77edaed7253eb99f05ff1354976eea2f859 100644 (file)
@@ -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);