aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hidp
diff options
context:
space:
mode:
authorGustavo F. Padovan <padovan@profusion.mobi>2011-10-07 00:29:51 -0400
committerGustavo F. Padovan <padovan@profusion.mobi>2011-10-07 00:44:00 -0400
commit3e90dc86f4b840297bd1fafdb9ba1bf58f2e0e49 (patch)
tree70361d1233884b90979e27a1694784155fca08e3 /net/bluetooth/hidp
parent81b25cd04387fbceb76fe893db4863a380941413 (diff)
Bluetooth: Rename hidp_find_connection()
hidp_get_connection() makes more sense because we hold a reference to the connection inside this function. Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net/bluetooth/hidp')
-rw-r--r--net/bluetooth/hidp/core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/hidp/core.c b/net/bluetooth/hidp/core.c
index fbbf80295020..217ef4761560 100644
--- a/net/bluetooth/hidp/core.c
+++ b/net/bluetooth/hidp/core.c
@@ -783,7 +783,7 @@ static int hidp_session(void *arg)
783 return 0; 783 return 0;
784} 784}
785 785
786static struct hci_conn *hidp_find_connection(struct hidp_session *session) 786static struct hci_conn *hidp_get_connection(struct hidp_session *session)
787{ 787{
788 bdaddr_t *src = &bt_sk(session->ctrl_sock->sk)->src; 788 bdaddr_t *src = &bt_sk(session->ctrl_sock->sk)->src;
789 bdaddr_t *dst = &bt_sk(session->ctrl_sock->sk)->dst; 789 bdaddr_t *dst = &bt_sk(session->ctrl_sock->sk)->dst;
@@ -995,7 +995,7 @@ int hidp_add_connection(struct hidp_connadd_req *req, struct socket *ctrl_sock,
995 return -ENOMEM; 995 return -ENOMEM;
996 } 996 }
997 997
998 session->conn = hidp_find_connection(session); 998 session->conn = hidp_get_connection(session);
999 if (!session->conn) { 999 if (!session->conn) {
1000 err = -ENOTCONN; 1000 err = -ENOTCONN;
1001 goto failed; 1001 goto failed;