timer/exynos4210_mct: Remove redundant statement in exynos4210_mct_write()
commit237d8f09635e01ff2c4e4c8ca28d14b92dfcd8bf
authorChen Qun <kuhn.chenqun@huawei.com>
Wed, 25 Mar 2020 02:59:19 +0000 (25 10:59 +0800)
committerLaurent Vivier <laurent@vivier.eu>
Mon, 4 May 2020 09:17:27 +0000 (4 11:17 +0200)
treee5fd6dd9bd5cd71e99729527692406de154a8397
parentfd1c220395eab1712e67238d876c72bf3292c153
timer/exynos4210_mct: Remove redundant statement in exynos4210_mct_write()

Clang static code analyzer show warning:
hw/timer/exynos4210_mct.c:1370:9: warning: Value stored to 'index' is never read
        index = GET_L_TIMER_CNT_REG_IDX(offset, lt_i);
        ^       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
hw/timer/exynos4210_mct.c:1399:9: warning: Value stored to 'index' is never read
        index = GET_L_TIMER_CNT_REG_IDX(offset, lt_i);
        ^       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
hw/timer/exynos4210_mct.c:1441:9: warning: Value stored to 'index' is never read
        index = GET_L_TIMER_CNT_REG_IDX(offset, lt_i);
        ^       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reported-by: Euler Robot <euler.robot@huawei.com>
Signed-off-by: Chen Qun <kuhn.chenqun@huawei.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200325025919.21316-4-kuhn.chenqun@huawei.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
hw/timer/exynos4210_mct.c