projects
/
openwrt
/
staging
/
pepe2k.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ath25: Replace fall through comment with fallthrough;
[openwrt/staging/pepe2k.git]
/
target
/
linux
/
ath25
/
patches-5.15
/
120-spiflash.patch
diff --git
a/target/linux/ath25/patches-5.15/120-spiflash.patch
b/target/linux/ath25/patches-5.15/120-spiflash.patch
index c0f4fa6204cdc7beb0c2865fdaf280384d00e209..b7a9607ac9b473da46ae09bf2d966812893001b1 100644
(file)
--- 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;
+ switch (read_len) {
+ case 4:
+ spi_data |= buf[3] << 24;
-+
/* fall through */
++
fallthrough;
+ case 3:
+ spi_data |= buf[2] << 16;
+ case 3:
+ spi_data |= buf[2] << 16;
-+
/* fall through */
++
fallthrough;
+ case 2:
+ spi_data |= buf[1] << 8;
+ case 2:
+ spi_data |= buf[1] << 8;
-+
/* fall through */
++
fallthrough;
+ case 1:
+ spi_data |= buf[0] & 0xff;
+ break;
+ case 1:
+ spi_data |= buf[0] & 0xff;
+ break;