ath25: Replace fall through comment with fallthrough;
authorHauke Mehrtens <hauke@hauke-m.de>
Thu, 18 May 2023 14:19:47 +0000 (16:19 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Fri, 19 May 2023 09:59:04 +0000 (11:59 +0200)
Replace the fall through comment with fallthrough; in the ar2315 flash
driver.
This fixes a compile warning.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/ath25/patches-5.15/120-spiflash.patch

index c0f4fa6204cdc7beb0c2865fdaf280384d00e209..b7a9607ac9b473da46ae09bf2d966812893001b1 100644 (file)
 +              switch (read_len) {
 +              case 4:
 +                      spi_data |= buf[3] << 24;
-+                      /* fall through */
++                      fallthrough;
 +              case 3:
 +                      spi_data |= buf[2] << 16;
-+                      /* fall through */
++                      fallthrough;
 +              case 2:
 +                      spi_data |= buf[1] << 8;
-+                      /* fall through */
++                      fallthrough;
 +              case 1:
 +                      spi_data |= buf[0] & 0xff;
 +                      break;