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

Commit 4339c25a authored by Peter Hurley's avatar Peter Hurley Committed by Marcel Holtmann
Browse files

Bluetooth: Simplify RFCOMM session state eval



Merge conditional test for BT_LISTEN session state into following
switch statement (which is functionally equivalent).

Signed-off-by: default avatarPeter Hurley <peter@hurleysoftware.com>
Tested-By: default avatarAlexander Holler <holler@ahsoftware.de>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent c10a848c
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -1968,12 +1968,11 @@ static void rfcomm_process_sessions(void)
			continue;
		}

		if (s->state == BT_LISTEN) {
		switch (s->state) {
		case BT_LISTEN:
			rfcomm_accept_connection(s);
			continue;
		}

		switch (s->state) {
		case BT_BOUND:
			s = rfcomm_check_connection(s);
			break;