]> git.proxmox.com Git - qemu.git/commitdiff
hw/pflash_cfi02.c: Mark deliberate fallthrough
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 21 Jan 2013 12:50:54 +0000 (12:50 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 26 Jan 2013 13:20:44 +0000 (13:20 +0000)
Mark the deliberate fallthrough where we treat the case of
an attempt to read flash when it is an unknown command
state as if it were a normal read.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/pflash_cfi02.c

index b4220c18960460c07f937f22269913bb3799ca02..44bd4654f0f20e1517513a5df75a7c13ca59d816 100644 (file)
@@ -157,6 +157,7 @@ static uint32_t pflash_read (pflash_t *pfl, hwaddr offset,
         DPRINTF("%s: unknown command state: %x\n", __func__, pfl->cmd);
         pfl->wcycle = 0;
         pfl->cmd = 0;
+        /* fall through to the read code */
     case 0x80:
         /* We accept reads during second unlock sequence... */
     case 0x00: