Browse Source

ath25: Replace fall through comment with fallthrough;

Replace the fall through comment with fallthrough; in the ar2315 flash
driver.
This fixes a compile warning.

Signed-off-by: Hauke Mehrtens <[email protected]>
Hauke Mehrtens 2 years ago
parent
commit
53956dd2f6
1 changed files with 3 additions and 3 deletions
  1. 3 3
      target/linux/ath25/patches-5.15/120-spiflash.patch

+ 3 - 3
target/linux/ath25/patches-5.15/120-spiflash.patch

@@ -350,13 +350,13 @@
 +		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;