mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -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
|
@ -319,8 +319,6 @@ static int nand_load(QEMUFile *f, void *opaque, int version_id)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int nand_iid = 0;
|
||||
|
||||
/*
|
||||
* Chip inputs are CLE, ALE, CE, WP, GND and eight I/O pins. Chip
|
||||
* outputs are R/B and eight I/O pins.
|
||||
|
@ -495,7 +493,7 @@ struct nand_flash_s *nand_init(int manf_id, int chip_id)
|
|||
s->storage = (uint8_t *) memset(qemu_malloc(s->pages * pagesize),
|
||||
0xff, s->pages * pagesize);
|
||||
|
||||
register_savevm("nand", nand_iid ++, 0, nand_save, nand_load, s);
|
||||
register_savevm("nand", -1, 0, nand_save, nand_load, s);
|
||||
|
||||
return s;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue