Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
ab88f714
Commit
ab88f714
authored
Oct 06, 2011
by
Gustavo F. Padovan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bluetooth: Uses test_and_clear_bit() when possible
Signed-off-by:
Gustavo F. Padovan
<
padovan@profusion.mobi
>
parent
192893c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
net/bluetooth/hidp/core.c
net/bluetooth/hidp/core.c
+3
-6
No files found.
net/bluetooth/hidp/core.c
View file @
ab88f714
...
...
@@ -496,10 +496,9 @@ static void hidp_process_handshake(struct hidp_session *session,
case
HIDP_HSHK_ERR_INVALID_REPORT_ID
:
case
HIDP_HSHK_ERR_UNSUPPORTED_REQUEST
:
case
HIDP_HSHK_ERR_INVALID_PARAMETER
:
if
(
test_bit
(
HIDP_WAITING_FOR_RETURN
,
&
session
->
flags
))
{
clear_bit
(
HIDP_WAITING_FOR_RETURN
,
&
session
->
flags
);
if
(
test_and_clear_bit
(
HIDP_WAITING_FOR_RETURN
,
&
session
->
flags
))
wake_up_interruptible
(
&
session
->
report_queue
);
}
/* FIXME: Call into SET_ GET_ handlers here */
break
;
...
...
@@ -520,10 +519,8 @@ static void hidp_process_handshake(struct hidp_session *session,
}
/* Wake up the waiting thread. */
if
(
test_bit
(
HIDP_WAITING_FOR_SEND_ACK
,
&
session
->
flags
))
{
clear_bit
(
HIDP_WAITING_FOR_SEND_ACK
,
&
session
->
flags
);
if
(
test_and_clear_bit
(
HIDP_WAITING_FOR_SEND_ACK
,
&
session
->
flags
))
wake_up_interruptible
(
&
session
->
report_queue
);
}
}
static
void
hidp_process_hid_control
(
struct
hidp_session
*
session
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment