From: David Sterba Date: Mon, 27 Dec 2010 15:39:12 +0000 (+0000) Subject: i7core_edac: fix misuse of logical operation in place of bitop X-Git-Tag: firefly_0821_release~3680^2~4223^2~20 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=80b8ce89ebb145d91fd2ef1a1e9610aee1613109;p=firefly-linux-kernel-4.4.55.git i7core_edac: fix misuse of logical operation in place of bitop CC: Mauro Carvalho Chehab Signed-off-by: David Sterba Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/edac/i7core_edac.c b/drivers/edac/i7core_edac.c index f6cf448d69b4..35a0ff527357 100644 --- a/drivers/edac/i7core_edac.c +++ b/drivers/edac/i7core_edac.c @@ -731,7 +731,7 @@ static int get_dimm_config(const struct mem_ctl_info *mci) debugf1("\t\t%#x\t%#x\t%#x\n", (value[j] >> 27) & 0x1, (value[j] >> 24) & 0x7, - (value[j] && ((1 << 24) - 1))); + (value[j] & ((1 << 24) - 1))); } return 0;