summaryrefslogtreecommitdiffstats
path: root/drivers/edac/i7core_edac.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2010-12-27 15:39:12 +0000
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-10-31 15:10:04 -0200
commit80b8ce89ebb145d91fd2ef1a1e9610aee1613109 (patch)
tree8e0ac3cb5f8e82646c1ae2a185b5ac27b787735e /drivers/edac/i7core_edac.c
parentc3b92c8787367a8bb53d57d9789b558f1295cc96 (diff)
downloadlinux-0-day-80b8ce89ebb145d91fd2ef1a1e9610aee1613109.tar.gz
linux-0-day-80b8ce89ebb145d91fd2ef1a1e9610aee1613109.tar.xz
i7core_edac: fix misuse of logical operation in place of bitop
CC: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: David Sterba <dsterba@suse.cz> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/edac/i7core_edac.c')
-rw-r--r--drivers/edac/i7core_edac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/edac/i7core_edac.c b/drivers/edac/i7core_edac.c
index f6cf448d69b4f..35a0ff5273578 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;