summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiaohe Lin <linmiaohe@huawei.com>2020-08-14 04:39:32 -0400
committerChristian Brauner <christian.brauner@ubuntu.com>2020-08-19 14:24:21 +0200
commit76df441ade97556816e8fc522ae4c3b50a255fb4 (patch)
tree628404e4c6d3d7bbb1421a765c19d9f2fb9dd582
parent28c41efd08bf97fc64f75304035ee3943995b68e (diff)
signal: Convert to the new fallthrough notation
Switch from using the /* fall through */ comment style notation to the new, preferred notation as outlined in our docs. Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> Acked-by: Christian Brauner <christian.brauner@ubuntu.com> [christian.brauner@ubuntu.com: rewrite commit message] Link: https://lore.kernel.org/r/20200814083932.4975-1-linmiaohe@huawei.com Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
-rw-r--r--kernel/signal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/signal.c b/kernel/signal.c
index 42b67d2cea37..a38b3edc6851 100644
--- a/kernel/signal.c
+++ b/kernel/signal.c
@@ -851,7 +851,7 @@ static int check_kill_permission(int sig, struct kernel_siginfo *info,
*/
if (!sid || sid == task_session(current))
break;
- /* fall through */
+ fallthrough;
default:
return -EPERM;
}