diff options
author | Borislav Petkov <borislav.petkov@amd.com> | 2010-08-03 16:51:28 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-08-10 11:09:15 -0700 |
commit | 69e18d28ab99ba499e2afba725f16a22f7424a4e (patch) | |
tree | e062dbd7f9c8ca2f69e51be9e59f20c76e8eef0d | |
parent | 1c628740e807234af95f299975fda2c3e0115547 (diff) | |
download | lwn-69e18d28ab99ba499e2afba725f16a22f7424a4e.tar.gz lwn-69e18d28ab99ba499e2afba725f16a22f7424a4e.zip |
amd64_edac: Fix operator precendence error
commit 962b70a1eb22c467b95756a290c694e73da17f41 upstream.
The bitwise AND is of higher precedence, make that explicit.
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/edac/amd64_edac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c index c028acbca768..c20a6c925bbe 100644 --- a/drivers/edac/amd64_edac.c +++ b/drivers/edac/amd64_edac.c @@ -1679,7 +1679,7 @@ static void f10_map_sysaddr_to_csrow(struct mem_ctl_info *mci, * ganged. Otherwise @chan should already contain the channel at * this point. */ - if (dct_ganging_enabled(pvt) && pvt->nbcfg & K8_NBCFG_CHIPKILL) + if (dct_ganging_enabled(pvt) && (pvt->nbcfg & K8_NBCFG_CHIPKILL)) chan = get_channel_from_ecc_syndrome(mci, syndrome); if (chan >= 0) |