Skip to content

Commit

Permalink
hw/block/pflash_cfi02: Simplify a statement using fall through
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Checkoway <stephen.checkoway@oberlin.edu>
Message-Id: <20190426162624.55977-3-stephen.checkoway@oberlin.edu>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
[PMD: Extracted from bigger patch]
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
  • Loading branch information
philmd committed Jul 2, 2019
1 parent 1d311e7 commit 7f7bdca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hw/block/pflash_cfi02.c
Expand Up @@ -239,10 +239,10 @@ static uint32_t pflash_read(PFlashCFI02 *pfl, hwaddr offset,
case 0x0E:
case 0x0F:
ret = boff & 0x01 ? pfl->ident3 : pfl->ident2;
if (ret == (uint8_t)-1) {
goto flash_read;
if (ret != (uint8_t)-1) {
break;
}
break;
/* Fall through to data read. */
default:
goto flash_read;
}
Expand Down

0 comments on commit 7f7bdca

Please sign in to comment.