Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 341500
b: refs/heads/master
c: 07887e9
h: refs/heads/master
v: v3
  • Loading branch information
Eric Lapuyade authored and Samuel Ortiz committed Nov 19, 2012
1 parent 96f2104 commit 9bcdee5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: ac46ba4384d2c44c56702d0da591696045fba682
refs/heads/master: 07887e92205c5808820de0be53bf326b4019d060
4 changes: 2 additions & 2 deletions trunk/net/nfc/hci/command.c
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ int nfc_hci_connect_gate(struct nfc_hci_dev *hdev, u8 dest_host, u8 dest_gate,
return -EADDRINUSE;

if (pipe != NFC_HCI_INVALID_PIPE)
goto pipe_is_open;
goto open_pipe;

switch (dest_gate) {
case NFC_HCI_LINK_MGMT_GATE:
Expand All @@ -361,6 +361,7 @@ int nfc_hci_connect_gate(struct nfc_hci_dev *hdev, u8 dest_host, u8 dest_gate,
break;
}

open_pipe:
r = nfc_hci_open_pipe(hdev, pipe);
if (r < 0) {
if (pipe_created)
Expand All @@ -371,7 +372,6 @@ int nfc_hci_connect_gate(struct nfc_hci_dev *hdev, u8 dest_host, u8 dest_gate,
return r;
}

pipe_is_open:
hdev->gate2pipe[dest_gate] = pipe;

return 0;
Expand Down

0 comments on commit 9bcdee5

Please sign in to comment.