aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--hw/pl181.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/pl181.c b/hw/pl181.c
index d581d9f79..192405333 100644
--- a/hw/pl181.c
+++ b/hw/pl181.c
@@ -182,7 +182,7 @@ error:
static void pl181_fifo_run(pl181_state *s)
{
uint32_t bits;
- uint32_t value;
+ uint32_t value = 0;
int n;
int is_read;
@@ -191,7 +191,6 @@ static void pl181_fifo_run(pl181_state *s)
&& !s->linux_hack) {
if (is_read) {
n = 0;
- value = 0;
while (s->datacnt && s->fifo_len < PL181_FIFO_LEN) {
value |= (uint32_t)sd_read_data(s->card) << (n * 8);
s->datacnt--;