]> git.baikalelectronics.ru Git - kernel.git/commit
clocksource/drivers/pistachio: Fix -Wunused-but-set-variable warning
authorDrew Fustini <dfustini@baylibre.com>
Tue, 23 Nov 2021 19:25:24 +0000 (11:25 -0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 14 Dec 2021 09:17:36 +0000 (10:17 +0100)
commit3b9439d42e5bbdf6d8567621cc9323298d8831d7
tree9cb92869e81541c47821cb1461f264120920112e
parent95c584a507802bd54e7533fdab679adac64a21cf
clocksource/drivers/pistachio: Fix -Wunused-but-set-variable warning

Variable 'overflow' set but not used, but this is the intended behavior.
The hardware only updates the counter register after the overflow
register read. However, the value of overflow is not actually needed.

Link: https://lore.kernel.org/lkml/202111200402.afQsussU-lkp@intel.com/
Reported-by: kernel test robot <lkp@intel.com>
Suggested-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Drew Fustini <dfustini@baylibre.com>
Link: https://lore.kernel.org/r/20211123192524.1038304-1-dfustini@baylibre.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/timer-pistachio.c