docs: Use fallthrough pseudo-keyword
authorWei Ming Chen <jj251510319013@gmail.com>
Sat, 15 May 2021 15:51:42 +0000 (23:51 +0800)
committerJonathan Corbet <corbet@lwn.net>
Thu, 20 May 2021 20:06:52 +0000 (14:06 -0600)
Replace /* fall through */ comment with fallthrough, make
it align with original process/coding-style.rst

Signed-off-by: Wei Ming Chen <jj251510319013@gmail.com>
Link: https://lore.kernel.org/r/20210515155142.2490-1-jj251510319013@gmail.com
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/translations/it_IT/process/coding-style.rst
Documentation/translations/zh_CN/process/coding-style.rst

index 95f2e7c985e2d29839e3bd159c621187ef26ac3d..ecc74ba50d3e8dc29d74a551692798e66c1b978b 100644 (file)
@@ -62,7 +62,7 @@ i ``case``.  Un esempio.:
        case 'K':
        case 'k':
                mem <<= 10;
-               /* fall through */
+               fallthrough;
        default:
                break;
        }
index 406d43a02c021227c1f257837567adf07c89feab..b8c484a84d1053e94d5f5d209bcab3b430337901 100644 (file)
@@ -61,7 +61,7 @@ Linux 内核代码风格
        case 'K':
        case 'k':
                mem <<= 10;
-               /* fall through */
+               fallthrough;
        default:
                break;
        }