]> git.proxmox.com Git - qemu.git/commit
hw/ds1338: Remove 'now' field from state struct
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 12 Oct 2012 10:54:38 +0000 (11:54 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 12 Oct 2012 10:54:38 +0000 (11:54 +0100)
commit7f7fd0f2e4d6b4f2ec137cda67f6c9a140668ea3
tree9e7fd7653ec9e240c6d73966be89eeb8c515f5ef
parent35b87a861394ed088c4db3b7ba9a67d8bb2b289e
hw/ds1338: Remove 'now' field from state struct

The 'struct tm now' field in the state structure is in fact only
ever used as a temporary (the actual RTC state is held in 'offset').
Remove it from the state structure in favour of using local variables
to avoid confusion about whether it needs to be saved on migration.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/ds1338.c