diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2020-07-08 15:18:23 -0500 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2020-07-10 19:09:42 +0200 |
commit | 19186c7b45c134820ea6fde3165a2cf30c1ace47 (patch) | |
tree | 37ab2aeadbc31065baf4e733edb26bb234e9150d /net/bluetooth/mgmt.c | |
parent | 51c19bf3d5cfaa66571e4b88ba2a6f6295311101 (diff) | |
download | linux-stable-19186c7b45c134820ea6fde3165a2cf30c1ace47.tar.gz linux-stable-19186c7b45c134820ea6fde3165a2cf30c1ace47.tar.bz2 linux-stable-19186c7b45c134820ea6fde3165a2cf30c1ace47.zip |
Bluetooth: core: Use fallthrough pseudo-keyword
Replace the existing /* fall through */ comments and its variants with
the new pseudo-keyword macro fallthrough[1]. Also, remove unnecessary
fall-through markings when it is the case.
[1] https://www.kernel.org/doc/html/latest/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/mgmt.c')
-rw-r--r-- | net/bluetooth/mgmt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index d29da80e38fe..686ef4792831 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c @@ -4525,7 +4525,7 @@ static bool discovery_type_is_valid(struct hci_dev *hdev, uint8_t type, *mgmt_status = mgmt_le_support(hdev); if (*mgmt_status) return false; - /* Intentional fall-through */ + fallthrough; case DISCOV_TYPE_BREDR: *mgmt_status = mgmt_bredr_support(hdev); if (*mgmt_status) @@ -5901,7 +5901,7 @@ static int load_long_term_keys(struct sock *sk, struct hci_dev *hdev, case MGMT_LTK_P256_DEBUG: authenticated = 0x00; type = SMP_LTK_P256_DEBUG; - /* fall through */ + fallthrough; default: continue; } |