aboutsummaryrefslogtreecommitdiff
path: root/hw/timer/grlib_gptimer.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2019-10-21 14:43:55 +0100
committerPeter Maydell <peter.maydell@linaro.org>2019-10-24 17:16:29 +0100
commit7a15cc17aef7568dd5e62508846220f93bb375e4 (patch)
tree663d42065869563bf0106d63f114f2a679643be0 /hw/timer/grlib_gptimer.c
parente982ba0524772c3fdcd166f59b062069bd8aa69c (diff)
downloadqemu-arm-7a15cc17aef7568dd5e62508846220f93bb375e4.tar.gz
hw/timer/slavio_timer: Remove useless check for NULL t->timer
In the slavio timer devcie, the ptimer TimerContext::timer is always created by slavio_timer_init(), so there's no need to check it for NULL; remove the single unneeded NULL check. This will be useful to avoid compiler/Coverity errors when a subsequent change adds a use of t->timer before the location we currently do the NULL check. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20191021134357.14266-2-peter.maydell@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/timer/grlib_gptimer.c')
0 files changed, 0 insertions, 0 deletions