aboutsummaryrefslogtreecommitdiff
path: root/hw/onenand.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-09-21 18:11:34 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-09-21 18:11:34 +0000
commitb9d38e9510b38a8c101fa50cbd6f75d9eff61261 (patch)
treec267953d3408328a7d262b95a9fb95641e285525 /hw/onenand.c
parent52d946208e9cc2e958b4d3ad18914a51bdbe197a (diff)
Fix Sparse warnings about using plain integer as NULL pointer
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/onenand.c')
-rw-r--r--hw/onenand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/onenand.c b/hw/onenand.c
index 59bc8acd80..c1e7e4d608 100644
--- a/hw/onenand.c
+++ b/hw/onenand.c
@@ -426,7 +426,7 @@ static void onenand_command(OneNANDState *s, int cmd)
case 0x65: /* OTP Access */
s->intstatus |= ONEN_INT;
- s->bdrv_cur = 0;
+ s->bdrv_cur = NULL;
s->current = s->otp;
s->secs_cur = 1 << (BLOCK_SHIFT - 9);
s->addr[ONEN_BUF_BLOCK] = 0;
@@ -624,7 +624,7 @@ void *onenand_init(uint32_t id, int regshift, qemu_irq irq)
s->shift = regshift;
s->intr = irq;
- s->rdy = 0;
+ s->rdy = NULL;
s->id = id;
s->blocks = size >> BLOCK_SHIFT;
s->secs = size >> 9;