From 18be51872917e70e00cb21e018b6bff33162c4f7 Mon Sep 17 00:00:00 2001 From: pbrook Date: Tue, 1 Jul 2008 21:31:54 +0000 Subject: Remove duplicate device index calculations. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4818 c046a42c-6fe2-441c-8c8c-71466251a162 --- hw/tmp105.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'hw/tmp105.c') diff --git a/hw/tmp105.c b/hw/tmp105.c index da26e46..a4a0103 100644 --- a/hw/tmp105.c +++ b/hw/tmp105.c @@ -228,8 +228,6 @@ void tmp105_reset(i2c_slave *i2c) tmp105_interrupt_update(s); } -static int tmp105_iid = 0; - struct i2c_slave *tmp105_init(i2c_bus *bus, qemu_irq alarm) { struct tmp105_s *s = (struct tmp105_s *) @@ -242,8 +240,7 @@ struct i2c_slave *tmp105_init(i2c_bus *bus, qemu_irq alarm) tmp105_reset(&s->i2c); - register_savevm("TMP105", tmp105_iid ++, 0, - tmp105_save, tmp105_load, s); + register_savevm("TMP105", -1, 0, tmp105_save, tmp105_load, s); return &s->i2c; } -- cgit v1.1