diff options
author | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-11-17 18:43:47 +0000 |
---|---|---|
committer | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-11-17 18:43:47 +0000 |
commit | e1dad5a615fb4a2d5cd43cbc0fc42f6a0d35f2e9 (patch) | |
tree | 683799618318bd70cc7505aa14d604ff164c0c01 /hw/sd.c | |
parent | 749bc4bf0bcd36e38b86d75a98f287f1941394cb (diff) |
Better STOPINTR bit semantics in the PXA2xx DMA.
Don't error out on reading GPCR register, just warn (Thorsten Zitterell).
Don't zero a memory that's already zeroed.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3676 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/sd.c')
-rw-r--r-- | hw/sd.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -377,7 +377,6 @@ static void sd_reset(SDState *sd, BlockDriverState *bdrv) qemu_free(sd->wp_groups); sd->wp_switch = bdrv_is_read_only(bdrv); sd->wp_groups = (int *) qemu_mallocz(sizeof(int) * sect); - memset(sd->wp_groups, 0, sizeof(int) * sect); memset(sd->function_group, 0, sizeof(int) * 6); sd->erase_start = 0; sd->erase_end = 0; |