summaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2023-04-01 09:38:05 +0200
committerSimon Glass <sjg@chromium.org>2023-04-28 11:30:17 -0600
commit278c9b22ba109a0c5aa946905dcd83caea85090f (patch)
treea8ba4e3332d2b139385f231b3eb31f6d150d7778 /drivers/mtd
parent42175a70d1e85bf0e7949b3e27633fac0aa8d4b1 (diff)
downloadu-boot-278c9b22ba109a0c5aa946905dcd83caea85090f.tar.gz
u-boot-278c9b22ba109a0c5aa946905dcd83caea85090f.tar.bz2
u-boot-278c9b22ba109a0c5aa946905dcd83caea85090f.zip
sandbox: spi: sandbox_sf_process_cmd() missing fallthrough
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>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/spi/sandbox.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/spi/sandbox.c b/drivers/mtd/spi/sandbox.c
index 3c01e3b41c..4fe547171a 100644
--- a/drivers/mtd/spi/sandbox.c
+++ b/drivers/mtd/spi/sandbox.c
@@ -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;