Skip to content

Commit 3e90dc8

Browse files
author
Gustavo F. Padovan
committed
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>
1 parent 81b25cd commit 3e90dc8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎net/bluetooth/hidp/core.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ static int hidp_session(void *arg)
783783
return 0;
784784
}
785785

786-
static struct hci_conn *hidp_find_connection(struct hidp_session *session)
786+
static struct hci_conn *hidp_get_connection(struct hidp_session *session)
787787
{
788788
bdaddr_t *src = &bt_sk(session->ctrl_sock->sk)->src;
789789
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,
995995
return -ENOMEM;
996996
}
997997

998-
session->conn = hidp_find_connection(session);
998+
session->conn = hidp_get_connection(session);
999999
if (!session->conn) {
10001000
err = -ENOTCONN;
10011001
goto failed;

0 commit comments

Comments
 (0)