diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2023-05-18 16:19:47 +0200 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2023-05-19 11:59:04 +0200 |
commit | 53956dd2f673fa3aacb643f88b25bb0314905931 (patch) | |
tree | 0bd219e35d2130ffe2b9cb9980ca6a685e9eabe0 /target | |
parent | 13656378e94a5f0e148a7726818fdaa4ccb231e0 (diff) | |
download | upstream-53956dd2f673fa3aacb643f88b25bb0314905931.tar.gz upstream-53956dd2f673fa3aacb643f88b25bb0314905931.tar.bz2 upstream-53956dd2f673fa3aacb643f88b25bb0314905931.zip |
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 <hauke@hauke-m.de>
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/ath25/patches-5.15/120-spiflash.patch | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/ath25/patches-5.15/120-spiflash.patch b/target/linux/ath25/patches-5.15/120-spiflash.patch index c0f4fa6204..b7a9607ac9 100644 --- a/target/linux/ath25/patches-5.15/120-spiflash.patch +++ b/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; |