summaryrefslogtreecommitdiff
path: root/hw/nand.c
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2008-07-01 21:31:54 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2008-07-01 21:31:54 +0000
commit18be51872917e70e00cb21e018b6bff33162c4f7 (patch)
treeb4cb449586ae3930e2d99dd4c00be2e46229b53c /hw/nand.c
parent9656f324d25895ec16ebc5eaf624e28a96c1f1be (diff)
downloadqemu-18be51872917e70e00cb21e018b6bff33162c4f7.tar.gz
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/nand.c')
-rw-r--r--hw/nand.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/hw/nand.c b/hw/nand.c
index aa0c200f2a..294a83f85f 100644
--- a/hw/nand.c
+++ b/hw/nand.c
@@ -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;
}