mos6522: convert VMSTATE_TIMER_PTR_TEST to VMSTATE_TIMER_PTR
commit3431bdf5a3c3bd732f78b0433471c2b1cb373564
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Thu, 7 Jun 2018 17:17:51 +0000 (7 18:17 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 12 Jun 2018 00:44:36 +0000 (12 10:44 +1000)
tree408b53196a49057540c38fa70169302a3d6a8c76
parentd638fd5c9681dbb8915147365520888c64f39dac
mos6522: convert VMSTATE_TIMER_PTR_TEST to VMSTATE_TIMER_PTR

The timers are configured in the mos6522 init function and therefore will
always exist, so the function can never return false.

Peter also pointed out that this is the only remaining user of
VMSTATE_TIMER_PTR_TEST in the codebase, so we might as well just convert it
over to VMSTATE_TIMER_PTR and remove mos6522_timer_exist() as it is no
longer required.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/misc/mos6522.c