Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277756
b: refs/heads/master
c: 2aeabcb
h: refs/heads/master
v: v3
  • Loading branch information
Johan Hedberg authored and Gustavo F. Padovan committed Nov 9, 2011
1 parent 67408d5 commit 48ec2eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 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: fc2f4b13d8c91713efb972be42566f7f3625f5ed
refs/heads/master: 2aeabcbedd51aef94b61d05b57246d1db4984453
15 changes: 2 additions & 13 deletions trunk/net/bluetooth/mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,6 @@ static void mgmt_pending_foreach(u16 opcode, struct hci_dev *hdev,
if (opcode > 0 && cmd->opcode != opcode)
continue;

if (hdev && cmd->index != hdev->id)
continue;

cb(cmd, data);
}
}
Expand All @@ -280,13 +277,8 @@ static struct pending_cmd *mgmt_pending_find(u16 opcode, struct hci_dev *hdev)
struct pending_cmd *cmd;

list_for_each_entry(cmd, &hdev->mgmt_pending, list) {
if (cmd->opcode != opcode)
continue;

if (hdev && cmd->index != hdev->id)
continue;

return cmd;
if (cmd->opcode == opcode)
return cmd;
}

return NULL;
Expand Down Expand Up @@ -1300,9 +1292,6 @@ static inline struct pending_cmd *find_pairing(struct hci_conn *conn)
if (cmd->opcode != MGMT_OP_PAIR_DEVICE)
continue;

if (cmd->index != hdev->id)
continue;

if (cmd->user_data != conn)
continue;

Expand Down

0 comments on commit 48ec2eb

Please sign in to comment.