Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277660
b: refs/heads/master
c: ab88f71
h: refs/heads/master
v: v3
  • Loading branch information
Gustavo F. Padovan committed Oct 7, 2011
1 parent d9b5ba6 commit 3129f4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 192893c72197b3f49f76a315024bdcd5aa26fff3
refs/heads/master: ab88f7149e0e3284623adcaa60460a9a69d9f131
9 changes: 3 additions & 6 deletions trunk/net/bluetooth/hidp/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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,
Expand Down

0 comments on commit 3129f4a

Please sign in to comment.