diff options
author | Mat Martineau <mathewm@codeaurora.org> | 2012-04-27 19:50:49 -0400 |
---|---|---|
committer | Gustavo Padovan <gustavo@padovan.org> | 2012-05-09 00:40:48 -0400 |
commit | dbd89fddc1f1fc96085deb164b7b9b2361241dd3 (patch) | |
tree | 723438afc91314544d3194fff3108b0141547a00 /net/bluetooth | |
parent | 105bdf9ec19e729bacdb33861c74fcf3eb39eb37 (diff) |
Bluetooth: Remove unused function
l2cap_get_chan_by_ident was not used, but didn't generate a compiler
warning because it was an inline function.
Signed-off-by: Mat Martineau <mathewm@codeaurora.org>
Signed-off-by: Gustavo Padovan <gustavo@padovan.org>
Diffstat (limited to 'net/bluetooth')
-rw-r--r-- | net/bluetooth/l2cap_core.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index a397ed7c4707..1192c943bf8e 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c | |||
@@ -120,17 +120,6 @@ static struct l2cap_chan *__l2cap_get_chan_by_ident(struct l2cap_conn *conn, u8 | |||
120 | return NULL; | 120 | return NULL; |
121 | } | 121 | } |
122 | 122 | ||
123 | static inline struct l2cap_chan *l2cap_get_chan_by_ident(struct l2cap_conn *conn, u8 ident) | ||
124 | { | ||
125 | struct l2cap_chan *c; | ||
126 | |||
127 | mutex_lock(&conn->chan_lock); | ||
128 | c = __l2cap_get_chan_by_ident(conn, ident); | ||
129 | mutex_unlock(&conn->chan_lock); | ||
130 | |||
131 | return c; | ||
132 | } | ||
133 | |||
134 | static struct l2cap_chan *__l2cap_global_chan_by_addr(__le16 psm, bdaddr_t *src) | 123 | static struct l2cap_chan *__l2cap_global_chan_by_addr(__le16 psm, bdaddr_t *src) |
135 | { | 124 | { |
136 | struct l2cap_chan *c; | 125 | struct l2cap_chan *c; |