From: Paul Walmsley Date: Wed, 2 May 2007 17:32:32 +0000 (+0000) Subject: ARM: OMAP: omap2_get_clksel(): fix suspicious assignment X-Git-Tag: v2.6.21-omap1~21 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=cbb28f6b3b38eaaf0b940cc3a99501a63bd96107;p=linux-2.6-omap-h63xx.git ARM: OMAP: omap2_get_clksel(): fix suspicious assignment mach-omap2/clock.c contains a suspicious assignment that almost certainly should be a equality test, in omap2_get_clksel(). Signed-off-by: Paul Walmsley Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/mach-omap2/clock.c b/arch/arm/mach-omap2/clock.c index 03065074f80..f19e2387e20 100644 --- a/arch/arm/mach-omap2/clock.c +++ b/arch/arm/mach-omap2/clock.c @@ -651,7 +651,7 @@ static u32 omap2_get_clksel(u32 *div_sel, u32 *field_mask, break; case CM_SYSCLKOUT_SEL1: div_addr = (u32)&PRCM_CLKOUT_CTRL; - if ((div_off == 3) || (div_off = 11)) + if ((div_off == 3) || (div_off == 11)) mask= 0x3; break; case CM_CORE_SEL1: