mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] i7core_edac: use bitwise operator instead of logical one
@ 2011-05-24 23:47 Nicolas Kaiser
  0 siblings, 0 replies; only message in thread
From: Nicolas Kaiser @ 2011-05-24 23:47 UTC (permalink / raw)
  To: Mauro Carvalho Chehab; +Cc: linux-edac, linux-kernel

Looks like a typo?

Signed-off-by: Nicolas Kaiser <nikai@nikai.net>
---
 drivers/edac/i7core_edac.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/edac/i7core_edac.c b/drivers/edac/i7core_edac.c
index 465cbc2..ab5080e 100644
--- a/drivers/edac/i7core_edac.c
+++ b/drivers/edac/i7core_edac.c
@@ -1670,7 +1670,7 @@ static void i7core_mce_output_error(struct mem_ctl_info *mci,
 	char *type, *optype, *err, *msg;
 	unsigned long error = m->status & 0x1ff0000l;
 	u32 optypenum = (m->status >> 4) & 0x07;
-	u32 core_err_cnt = (m->status >> 38) && 0x7fff;
+	u32 core_err_cnt = (m->status >> 38) & 0x7fff;
 	u32 dimm = (m->misc >> 16) & 0x3;
 	u32 channel = (m->misc >> 18) & 0x3;
 	u32 syndrome = m->misc >> 32;
-- 
1.7.5.rc3

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-05-24 23:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-24 23:47 [PATCH] i7core_edac: use bitwise operator instead of logical one Nicolas Kaiser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome