Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9ea47132 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Johan Hedberg
Browse files

Bluetooth: Mark expected switch fall-throughs



In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Signed-off-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 96e58d36
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -4801,6 +4801,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 */
		default:
			continue;
		}
+1 −0
Original line number Diff line number Diff line
@@ -221,6 +221,7 @@ static void __rfcomm_sock_close(struct sock *sk)
	case BT_CONFIG:
	case BT_CONNECTED:
		rfcomm_dlc_close(d, 0);
		/* fall through */

	default:
		sock_set_flag(sk, SOCK_ZAPPED);