summaryrefslogtreecommitdiffstats
path: root/drivers/clocksource
diff options
context:
space:
mode:
authorWan Jiabing <wanjiabing@vivo.com>2021-06-15 19:54:40 +0800
committerDaniel Lezcano <daniel.lezcano@linaro.org>2021-06-16 17:33:04 +0200
commitf94bc2667fb204d7c131ac39d9ea342bd16116dc (patch)
tree6f34f3065b7fb3db48214a23be90e939f400d583 /drivers/clocksource
parentbe534f8ee137b95046d7c53c8200ffdcf05781a7 (diff)
downloadlinux-stable-f94bc2667fb204d7c131ac39d9ea342bd16116dc.tar.gz
linux-stable-f94bc2667fb204d7c131ac39d9ea342bd16116dc.tar.bz2
linux-stable-f94bc2667fb204d7c131ac39d9ea342bd16116dc.zip
clocksource/drivers/arm_global_timer: Remove duplicated argument in arm_global_timer
Fix the following coccicheck warning: drivers/clocksource/arm_global_timer.c:107:4-23: duplicated argument to & or | Signed-off-by: Wan Jiabing <wanjiabing@vivo.com> Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/20210615115440.8881-1-wanjiabing@vivo.com
Diffstat (limited to 'drivers/clocksource')
-rw-r--r--drivers/clocksource/arm_global_timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clocksource/arm_global_timer.c b/drivers/clocksource/arm_global_timer.c
index 68b1d144a412..44a61dc6f932 100644
--- a/drivers/clocksource/arm_global_timer.c
+++ b/drivers/clocksource/arm_global_timer.c
@@ -104,7 +104,7 @@ static void gt_compare_set(unsigned long delta, int periodic)
counter += delta;
ctrl = readl(gt_base + GT_CONTROL);
ctrl &= ~(GT_CONTROL_COMP_ENABLE | GT_CONTROL_IRQ_ENABLE |
- GT_CONTROL_AUTO_INC | GT_CONTROL_AUTO_INC);
+ GT_CONTROL_AUTO_INC);
ctrl |= GT_CONTROL_TIMER_ENABLE;
writel_relaxed(ctrl, gt_base + GT_CONTROL);
writel_relaxed(lower_32_bits(counter), gt_base + GT_COMP0);