From: Borislav Petkov Date: Tue, 3 Aug 2010 14:51:28 +0000 (+0200) Subject: amd64_edac: Fix operator precendence error X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=962b70a1eb22c467b95756a290c694e73da17f41;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git amd64_edac: Fix operator precendence error The bitwise AND is of higher precedence, make that explicit. Cc: # 34.x Signed-off-by: Borislav Petkov --- diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c index 0106d343a681..c29d24fe1856 100644 --- a/drivers/edac/amd64_edac.c +++ b/drivers/edac/amd64_edac.c @@ -1683,7 +1683,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)