diff options
author | Mat Martineau <mathewm@codeaurora.org> | 2012-10-23 18:24:08 -0400 |
---|---|---|
committer | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2012-10-23 21:59:52 -0400 |
commit | 5909cf30f380d13bb59e81e4cb17c3714cb94e68 (patch) | |
tree | 20dc6c393e9cb0eb01c638bef53f7b699dfeb49f /net/bluetooth | |
parent | 1700915fef115b13c43fe3974d0dbb619e6a187d (diff) |
Bluetooth: Remove unnecessary intermediate function
Resolves a conflict resolution issue in "Bluetooth: Fix L2CAP coding
style". The remaining connect and create channel response handler is
renamed to better reflect its use for both response types.
Signed-off-by: Mat Martineau <mathewm@codeaurora.org>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Acked-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'net/bluetooth')
-rw-r--r-- | net/bluetooth/l2cap_core.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index 2b3eef706899..31750945298b 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c | |||
@@ -3538,7 +3538,7 @@ static int l2cap_connect_req(struct l2cap_conn *conn, | |||
3538 | return 0; | 3538 | return 0; |
3539 | } | 3539 | } |
3540 | 3540 | ||
3541 | static inline int l2cap_connect_rsp(struct l2cap_conn *conn, | 3541 | static int l2cap_connect_create_rsp(struct l2cap_conn *conn, |
3542 | struct l2cap_cmd_hdr *cmd, u8 *data) | 3542 | struct l2cap_cmd_hdr *cmd, u8 *data) |
3543 | { | 3543 | { |
3544 | struct l2cap_conn_rsp *rsp = (struct l2cap_conn_rsp *) data; | 3544 | struct l2cap_conn_rsp *rsp = (struct l2cap_conn_rsp *) data; |
@@ -4092,15 +4092,6 @@ static int l2cap_create_channel_req(struct l2cap_conn *conn, | |||
4092 | return 0; | 4092 | return 0; |
4093 | } | 4093 | } |
4094 | 4094 | ||
4095 | static inline int l2cap_create_channel_rsp(struct l2cap_conn *conn, | ||
4096 | struct l2cap_cmd_hdr *cmd, | ||
4097 | void *data) | ||
4098 | { | ||
4099 | BT_DBG("conn %p", conn); | ||
4100 | |||
4101 | return l2cap_connect_rsp(conn, cmd, data); | ||
4102 | } | ||
4103 | |||
4104 | static void l2cap_send_move_chan_rsp(struct l2cap_conn *conn, u8 ident, | 4095 | static void l2cap_send_move_chan_rsp(struct l2cap_conn *conn, u8 ident, |
4105 | u16 icid, u16 result) | 4096 | u16 icid, u16 result) |
4106 | { | 4097 | { |
@@ -4307,7 +4298,7 @@ static inline int l2cap_bredr_sig_cmd(struct l2cap_conn *conn, | |||
4307 | 4298 | ||
4308 | case L2CAP_CONN_RSP: | 4299 | case L2CAP_CONN_RSP: |
4309 | case L2CAP_CREATE_CHAN_RSP: | 4300 | case L2CAP_CREATE_CHAN_RSP: |
4310 | err = l2cap_connect_rsp(conn, cmd, data); | 4301 | err = l2cap_connect_create_rsp(conn, cmd, data); |
4311 | break; | 4302 | break; |
4312 | 4303 | ||
4313 | case L2CAP_CONF_REQ: | 4304 | case L2CAP_CONF_REQ: |