Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 39699
b: refs/heads/master
c: b2cfcd7
h: refs/heads/master
i:
  39697: 72cf8f7
  39695: 219f455
v: v3
  • Loading branch information
Marcel Holtmann authored and David S. Miller committed Oct 16, 2006
1 parent d300a62 commit a03471b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 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: e86070c83e9110e89800274385c013db602b1444
refs/heads/master: b2cfcd75df77b80d9cc3fa84190a350dfa79eb93
4 changes: 1 addition & 3 deletions trunk/net/bluetooth/bnep/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -528,12 +528,10 @@ static struct device *bnep_get_device(struct bnep_session *session)
return NULL;

conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, dst);
if (!conn)
return NULL;

hci_dev_put(hdev);

return &conn->dev;
return conn ? &conn->dev : NULL;
}

int bnep_add_connection(struct bnep_connadd_req *req, struct socket *sock)
Expand Down
4 changes: 1 addition & 3 deletions trunk/net/bluetooth/hidp/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -541,12 +541,10 @@ static struct device *hidp_get_device(struct hidp_session *session)
return NULL;

conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, dst);
if (!conn)
return NULL;

hci_dev_put(hdev);

return &conn->dev;
return conn ? &conn->dev : NULL;
}

static inline void hidp_setup_input(struct hidp_session *session, struct hidp_connadd_req *req)
Expand Down
4 changes: 1 addition & 3 deletions trunk/net/bluetooth/rfcomm/tty.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,12 +172,10 @@ static struct device *rfcomm_get_device(struct rfcomm_dev *dev)
return NULL;

conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &dev->dst);
if (!conn)
return NULL;

hci_dev_put(hdev);

return &conn->dev;
return conn ? &conn->dev : NULL;
}

static int rfcomm_dev_add(struct rfcomm_dev_req *req, struct rfcomm_dlc *dlc)
Expand Down

0 comments on commit a03471b

Please sign in to comment.