summaryrefslogtreecommitdiff
path: root/hw/onenand.c
diff options
context:
space:
mode:
authorAndrzej Zaborowski <andrew.zaborowski@intel.com>2011-07-30 06:53:39 +0200
committerAndrzej Zaborowski <andrew.zaborowski@intel.com>2011-07-30 06:53:39 +0200
commit63efb1d9c4140108ab57e706fa7a90a21e07cfcc (patch)
treec8ef53d4e9780e03990c20362f56fd673a028e92 /hw/onenand.c
parentf1588dd26c25bd7590e18a0cce59a5fa82323ce5 (diff)
onenand: Add missing brace.
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
Diffstat (limited to 'hw/onenand.c')
-rw-r--r--hw/onenand.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/onenand.c b/hw/onenand.c
index e8d1d4b1a5..b0cbebc178 100644
--- a/hw/onenand.c
+++ b/hw/onenand.c
@@ -720,6 +720,7 @@ void *onenand_init(BlockDriverState *bdrv,
if (!s->bdrv) {
s->image = memset(qemu_malloc(size + (size >> 5)),
0xff, size + (size >> 5));
+ }
s->otp = memset(qemu_malloc((64 + 2) << PAGE_SHIFT),
0xff, (64 + 2) << PAGE_SHIFT);
s->ram = qemu_ram_alloc(NULL, "onenand.ram", 0xc000 << s->shift);