Skip to content

Commit

Permalink
i7core_edac: fix misuse of logical operation in place of bitop
Browse files Browse the repository at this point in the history
CC: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
David Sterba authored and Mauro Carvalho Chehab committed Oct 31, 2011
1 parent c3b92c8 commit 80b8ce8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/edac/i7core_edac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 80b8ce8

Please sign in to comment.