From: Roel Kluin Date: Sun, 8 Nov 2009 08:26:56 +0000 (-0800) Subject: sparc64: replace parentheses in pmul() X-Git-Tag: upstream/snapshot3+hdmi~16518^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=88b938e63e68fd35e603421f722be0f35dde1016;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git sparc64: replace parentheses in pmul() `>>' has a higher precedence than `?' so src2 evaluated to either 16 or 0 dependent on the bits set in rs2. Signed-off-by: Roel Kluin Signed-off-by: David S. Miller --- diff --git a/arch/sparc/kernel/visemul.c b/arch/sparc/kernel/visemul.c index b956fd7..d231cbd 100644 --- a/arch/sparc/kernel/visemul.c +++ b/arch/sparc/kernel/visemul.c @@ -617,7 +617,7 @@ static void pmul(struct pt_regs *regs, unsigned int insn, unsigned int opf) rs2 = fps_regval(f, RS2(insn)); rd_val = 0; - src2 = (rs2 >> (opf == FMUL8x16AU_OPF) ? 16 : 0); + src2 = rs2 >> (opf == FMUL8x16AU_OPF ? 16 : 0); for (byte = 0; byte < 4; byte++) { u16 src1 = (rs1 >> (byte * 8)) & 0x00ff; u32 prod = src1 * src2;