summaryrefslogtreecommitdiffstats
path: root/hw/timer/hpet.c
diff options
context:
space:
mode:
authorPeter Maydell2019-10-21 15:43:55 +0200
committerPeter Maydell2019-10-24 18:16:29 +0200
commit5e3478925dd0640b80d766ed330b7d281d761ceb (patch)
tree663d42065869563bf0106d63f114f2a679643be0 /hw/timer/hpet.c
parenthw/dma/xilinx_axidma.c: Switch to transaction-based ptimer API (diff)
downloadqemu-5e3478925dd0640b80d766ed330b7d281d761ceb.tar.gz
qemu-5e3478925dd0640b80d766ed330b7d281d761ceb.tar.xz
qemu-5e3478925dd0640b80d766ed330b7d281d761ceb.zip
hw/timer/slavio_timer: Remove useless check for NULL t->timer
In the slavio timer device, 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/hpet.c')
0 files changed, 0 insertions, 0 deletions