Skip to contentSkip to conversation

docs: Use fallthrough pseudo-keyword

PATCH Applied Wei Ming Chen 2 participants 2 messages May 15, 2021 – May 20, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs: Use fallthrough pseudo-keyword

Replace /* fall through */ comment with fallthrough, make it align with original process/coding-style.rst

---
 Documentation/translations/it_IT/process/coding-style.rst | 2 +-
 Documentation/translations/zh_CN/process/coding-style.rst | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Documentation/translations/it_IT/process/coding-style.rst +1 -1
index 95f2e7c985e2..ecc74ba50d3e 100644
@@ -62,7 +62,7 @@ i ``case``.  Un esempio.:
 	case 'K':
 	case 'k':
 		mem <<= 10;
-		/* fall through */
+		fallthrough;
 	default:
 		break;
 	}
Documentation/translations/zh_CN/process/coding-style.rst +1 -1
index 406d43a02c02..b8c484a84d10 100644
@@ -61,7 +61,7 @@ Linux 内核代码风格
 	case 'K':
 	case 'k':
 		mem <<= 10;
-		/* fall through */
+		fallthrough;
 	default:
 		break;
 	}
Signature · 1 line
2.25.1
maintainer Applied
#1 lore raw
Quoted 8 lines · Wei Ming Chen

Replace /* fall through */ comment with fallthrough, make it align with original process/coding-style.rst

---
 Documentation/translations/it_IT/process/coding-style.rst | 2 +-
 Documentation/translations/zh_CN/process/coding-style.rst | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Applied, thanks.

jon