From: Dan Carpenter Date: Fri, 23 Aug 2013 13:15:39 +0000 Subject: [RFC] r82600_edac: '&' vs '|' typo Message-Id: <20130823131539.GA27612@elgon.mountain> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kernel-janitors@vger.kernel.org This is a shot in the dark. Doing the & here seems like not correct because "0x1 & 0x2" is zero. I think '|' is probably intended because that's often the case with these. But this is just a guess. I'd prefer to leave it the same if no one knows for sure what we're trying to do here. diff --git a/drivers/edac/r82600_edac.c b/drivers/edac/r82600_edac.c index 2fd6a54..656eab6 100644 --- a/drivers/edac/r82600_edac.c +++ b/drivers/edac/r82600_edac.c @@ -146,14 +146,14 @@ static void r82600_get_error_info(struct mem_ctl_info *mci, if (info->eapr & BIT(0)) /* Clear error to allow next error to be reported [p.62] */ pci_write_bits32(pdev, R82600_EAP, - ((u32) BIT(0) & (u32) BIT(1)), - ((u32) BIT(0) & (u32) BIT(1))); + ((u32) BIT(0) | (u32) BIT(1)), + ((u32) BIT(0) | (u32) BIT(1))); if (info->eapr & BIT(1)) /* Clear error to allow next error to be reported [p.62] */ pci_write_bits32(pdev, R82600_EAP, - ((u32) BIT(0) & (u32) BIT(1)), - ((u32) BIT(0) & (u32) BIT(1))); + ((u32) BIT(0) | (u32) BIT(1)), + ((u32) BIT(0) | (u32) BIT(1))); } static int r82600_process_error_info(struct mem_ctl_info *mci,