aboutsummaryrefslogtreecommitdiff
path: root/hw/tsc2005.c
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2008-07-01 21:31:54 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2008-07-01 21:31:54 +0000
commit18be51872917e70e00cb21e018b6bff33162c4f7 (patch)
treeb4cb449586ae3930e2d99dd4c00be2e46229b53c /hw/tsc2005.c
parent9656f324d25895ec16ebc5eaf624e28a96c1f1be (diff)
downloadqemu-18be51872917e70e00cb21e018b6bff33162c4f7.zip
qemu-18be51872917e70e00cb21e018b6bff33162c4f7.tar.gz
qemu-18be51872917e70e00cb21e018b6bff33162c4f7.tar.bz2
Remove duplicate device index calculations.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4818 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/tsc2005.c')
-rw-r--r--hw/tsc2005.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/hw/tsc2005.c b/hw/tsc2005.c
index 7708a36..f7a35b2 100644
--- a/hw/tsc2005.c
+++ b/hw/tsc2005.c
@@ -520,8 +520,6 @@ static int tsc2005_load(QEMUFile *f, void *opaque, int version_id)
return 0;
}
-static int tsc2005_iid = 0;
-
void *tsc2005_init(qemu_irq pintdav)
{
struct tsc2005_state_s *s;
@@ -551,8 +549,7 @@ void *tsc2005_init(qemu_irq pintdav)
"QEMU TSC2005-driven Touchscreen");
qemu_register_reset((void *) tsc2005_reset, s);
- register_savevm("tsc2005", tsc2005_iid ++, 0,
- tsc2005_save, tsc2005_load, s);
+ register_savevm("tsc2005", -1, 0, tsc2005_save, tsc2005_load, s);
return s;
}