diff options
author | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-07-01 21:31:54 +0000 |
---|---|---|
committer | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-07-01 21:31:54 +0000 |
commit | 18be51872917e70e00cb21e018b6bff33162c4f7 (patch) | |
tree | b4cb449586ae3930e2d99dd4c00be2e46229b53c /hw/max7310.c | |
parent | 9656f324d25895ec16ebc5eaf624e28a96c1f1be (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/max7310.c')
-rw-r--r-- | hw/max7310.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/hw/max7310.c b/hw/max7310.c index 397950a084..2816611a80 100644 --- a/hw/max7310.c +++ b/hw/max7310.c @@ -177,8 +177,6 @@ static int max7310_load(QEMUFile *f, void *opaque, int version_id) return 0; } -static int max7310_iid = 0; - static void max7310_gpio_set(void *opaque, int line, int level) { struct max7310_s *s = (struct max7310_s *) opaque; @@ -205,8 +203,7 @@ struct i2c_slave *max7310_init(i2c_bus *bus) max7310_reset(&s->i2c); - register_savevm("max7310", max7310_iid ++, 0, - max7310_save, max7310_load, s); + register_savevm("max7310", -1, 0, max7310_save, max7310_load, s); return &s->i2c; } |