]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mtd: spi-nor: missing fallthrough in set_4byte()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 1 Apr 2023 07:34:08 +0000 (09:34 +0200)
committerJagan Teki <jagan@amarulasolutions.com>
Tue, 25 Apr 2023 17:33:13 +0000 (23:03 +0530)
Add a missing fallthrough macro to avoid a -Wimplicit-fallthrough warning.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
drivers/mtd/spi/spi-nor-core.c

index 83d7fe44ee18a42e2b01a76881c239de47ce6e76..f963ed026cc643d42a1ced6d531432e212e7c5f0 100644 (file)
@@ -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: