]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sandbox: spi: sandbox_sf_process_cmd() missing fallthrough
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 1 Apr 2023 07:38:05 +0000 (09:38 +0200)
committerSimon Glass <sjg@chromium.org>
Fri, 28 Apr 2023 17:30:17 +0000 (11:30 -0600)
Add a missing fallthrough macro to avoid a -Wimplicit-fallthrough warning.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/mtd/spi/sandbox.c

index 3c01e3b41c84a4da1e846cec0c2adc6a6a288552..4fe547171a5f06705b3cedc4476720a76a36ba4c 100644 (file)
@@ -248,6 +248,7 @@ static int sandbox_sf_process_cmd(struct sandbox_spi_flash *sbsf, const u8 *rx,
                break;
        case SPINOR_OP_READ_FAST:
                sbsf->pad_addr_bytes = 1;
+               fallthrough;
        case SPINOR_OP_READ:
        case SPINOR_OP_PP:
                sbsf->state = SF_ADDR;