From: Heinrich Schuchardt Date: Sat, 1 Apr 2023 07:34:08 +0000 (+0200) Subject: mtd: spi-nor: missing fallthrough in set_4byte() X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=24c27b3c6ceab7295d12cd2ae0a47cfe9c136ecc;p=u-boot.git mtd: spi-nor: missing fallthrough in set_4byte() Add a missing fallthrough macro to avoid a -Wimplicit-fallthrough warning. Signed-off-by: Heinrich Schuchardt Reviewed-by: Jagan Teki --- diff --git a/drivers/mtd/spi/spi-nor-core.c b/drivers/mtd/spi/spi-nor-core.c index 83d7fe44ee..f963ed026c 100644 --- a/drivers/mtd/spi/spi-nor-core.c +++ b/drivers/mtd/spi/spi-nor-core.c @@ -669,6 +669,7 @@ static int set_4byte(struct spi_nor *nor, const struct flash_info *info, case SNOR_MFR_MICRON: /* Some Micron need WREN command; all will accept it */ need_wren = true; + fallthrough; case SNOR_MFR_ISSI: case SNOR_MFR_MACRONIX: case SNOR_MFR_WINBOND: