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/twl92230.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'hw/twl92230.c') diff --git a/hw/twl92230.c b/hw/twl92230.c index 8d0ce5da6c..8fad96902d 100644 --- a/hw/twl92230.c +++ b/hw/twl92230.c @@ -876,8 +876,6 @@ static int menelaus_load(QEMUFile *f, void *opaque, int version_id) return 0; } -static int menelaus_iid = 0; - i2c_slave *twl92230_init(i2c_bus *bus, qemu_irq irq) { struct menelaus_s *s = (struct menelaus_s *) @@ -894,8 +892,7 @@ i2c_slave *twl92230_init(i2c_bus *bus, qemu_irq irq) menelaus_reset(&s->i2c); - register_savevm("menelaus", menelaus_iid ++, - 0, menelaus_save, menelaus_load, s); + register_savevm("menelaus", -1, 0, menelaus_save, menelaus_load, s); return &s->i2c; } -- cgit v1.2.3