projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c10a848
)
Bluetooth: Simplify RFCOMM session state eval
author
Peter Hurley
<peter@hurleysoftware.com>
Mon, 10 Feb 2014 01:59:11 +0000
(20:59 -0500)
committer
Marcel Holtmann
<marcel@holtmann.org>
Fri, 14 Feb 2014 21:39:30 +0000
(13:39 -0800)
Merge conditional test for BT_LISTEN session state into following
switch statement (which is functionally equivalent).
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Tested-By: Alexander Holler <holler@ahsoftware.de>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/rfcomm/core.c
patch
|
blob
|
blame
|
history
diff --git
a/net/bluetooth/rfcomm/core.c
b/net/bluetooth/rfcomm/core.c
index b378bbb6f8a79fea17eaf33b5a4e29fa3f5aa0cd..e8898624cbaf2d6339e9f8ae4a149ce6c93058db 100644
(file)
--- a/
net/bluetooth/rfcomm/core.c
+++ b/
net/bluetooth/rfcomm/core.c
@@
-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;