Bluetooth: Rename __l2cap_connect() to l2cap_connect()
authorGustavo Padovan <gustavo.padovan@collabora.co.uk>
Fri, 12 Oct 2012 11:40:40 +0000 (19:40 +0800)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Mon, 15 Oct 2012 12:44:24 +0000 (09:44 -0300)
Use of "__" usually means we need to call the function with a lock held,
which is not the case here.

Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/l2cap_core.c

index 314d95580d732975a1ab5e3049bc1e224104adee..fca407e17f16e2757f2d27935b06416784799bd9 100644 (file)
@@ -3391,8 +3391,8 @@ static inline int l2cap_command_rej(struct l2cap_conn *conn,
        return 0;
 }
 
-static void __l2cap_connect(struct l2cap_conn *conn, struct l2cap_cmd_hdr *cmd,
-                           u8 *data, u8 rsp_code, u8 amp_id)
+static void l2cap_connect(struct l2cap_conn *conn, struct l2cap_cmd_hdr *cmd,
+                         u8 *data, u8 rsp_code, u8 amp_id)
 {
        struct l2cap_conn_req *req = (struct l2cap_conn_req *) data;
        struct l2cap_conn_rsp rsp;
@@ -3512,7 +3512,7 @@ sendresp:
 static int l2cap_connect_req(struct l2cap_conn *conn,
                             struct l2cap_cmd_hdr *cmd, u8 *data)
 {
-       __l2cap_connect(conn, cmd, data, L2CAP_CONN_RSP, 0);
+       l2cap_connect(conn, cmd, data, L2CAP_CONN_RSP, 0);
        return 0;
 }