aboutsummaryrefslogtreecommitdiff
path: root/hw/ide.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/ide.c
parent9656f324d25895ec16ebc5eaf624e28a96c1f1be (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/ide.c')
-rw-r--r--hw/ide.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/hw/ide.c b/hw/ide.c
index dc41982920..91244be91c 100644
--- a/hw/ide.c
+++ b/hw/ide.c
@@ -3596,8 +3596,6 @@ static int md_load(QEMUFile *f, void *opaque, int version_id)
return 0;
}
-static int md_iid = 0;
-
static const uint8_t dscm1xxxx_cis[0x14a] = {
[0x000] = CISTPL_DEVICE, /* 5V Device Information */
[0x002] = 0x03, /* Tuple length = 4 bytes */
@@ -3824,7 +3822,7 @@ struct pcmcia_card_s *dscm1xxxx_init(BlockDriverState *bdrv)
md->ide->mdata_size = METADATA_SIZE;
md->ide->mdata_storage = (uint8_t *) qemu_mallocz(METADATA_SIZE);
- register_savevm("microdrive", md_iid ++, 0, md_save, md_load, md);
+ register_savevm("microdrive", -1, 0, md_save, md_load, md);
return &md->card;
}