aboutsummaryrefslogtreecommitdiffstats
path: root/hw/max111x.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/max111x.c
parent9656f324d25895ec16ebc5eaf624e28a96c1f1be (diff)
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/max111x.c')
-rw-r--r--hw/max111x.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/hw/max111x.c b/hw/max111x.c
index cc3ded1df..15392a21f 100644
--- a/hw/max111x.c
+++ b/hw/max111x.c
@@ -121,8 +121,6 @@ static int max111x_load(QEMUFile *f, void *opaque, int version_id)
return 0;
}
-static int max111x_iid = 0;
-
static struct max111x_s *max111x_init(qemu_irq cb)
{
struct max111x_s *s;
@@ -143,8 +141,7 @@ static struct max111x_s *max111x_init(qemu_irq cb)
s->input[7] = 0x80;
s->com = 0;
- register_savevm("max111x", max111x_iid ++, 0,
- max111x_save, max111x_load, s);
+ register_savevm("max111x", -1, 0, max111x_save, max111x_load, s);
return s;
}