mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
Remove duplicate device index calculations.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4818 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
9656f324d2
commit
18be518729
12 changed files with 21 additions and 44 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue