hw/timer/slavio_timer: Remove useless check for NULL t->timer
commit5e3478925dd0640b80d766ed330b7d281d761ceb
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 21 Oct 2019 13:43:55 +0000 (21 14:43 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 24 Oct 2019 16:16:29 +0000 (24 17:16 +0100)
tree663d42065869563bf0106d63f114f2a679643be0
parente982ba0524772c3fdcd166f59b062069bd8aa69c
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>
hw/timer/slavio_timer.c