hw/block/pflash_cfi02: Simplify a statement using fall through

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>
master
Philippe Mathieu-Daudé 2019-05-05 23:04:48 +02:00
parent 1d311e738b
commit 7f7bdcaff5
1 changed files with 3 additions and 3 deletions

View File

@ -239,10 +239,10 @@ static uint32_t pflash_read(PFlashCFI02 *pfl, hwaddr offset,
case 0x0E: case 0x0E:
case 0x0F: case 0x0F:
ret = boff & 0x01 ? pfl->ident3 : pfl->ident2; ret = boff & 0x01 ? pfl->ident3 : pfl->ident2;
if (ret == (uint8_t)-1) { if (ret != (uint8_t)-1) {
goto flash_read; break;
} }
break; /* Fall through to data read. */
default: default:
goto flash_read; goto flash_read;
} }