summaryrefslogtreecommitdiffstats
path: root/net/bluetooth
diff options
context:
space:
mode:
authorGustavo F. Padovan <padovan@profusion.mobi>2011-12-20 10:57:26 -0200
committerGustavo F. Padovan <padovan@profusion.mobi>2011-12-20 17:06:30 -0200
commitc2ec9c1bbd17cdd1fc962f000b4ecb98c1dad830 (patch)
tree9694fd4b5845bdbbe5676b8f010dd3062e636a27 /net/bluetooth
parent613a1c0c595fe2f2d9148a705f140a53bc9f56e1 (diff)
downloadlinux-c2ec9c1bbd17cdd1fc962f000b4ecb98c1dad830.tar.gz
linux-c2ec9c1bbd17cdd1fc962f000b4ecb98c1dad830.tar.bz2
linux-c2ec9c1bbd17cdd1fc962f000b4ecb98c1dad830.zip
Bluetooth: Move l2cap_{set,clear}_timer to l2cap.h
It is the only place where it is used. Acked-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/l2cap_core.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
index ffa2f6b8408f..5978d69f3d8a 100644
--- a/net/bluetooth/l2cap_core.c
+++ b/net/bluetooth/l2cap_core.c
@@ -228,20 +228,6 @@ static u16 l2cap_alloc_cid(struct l2cap_conn *conn)
return 0;
}
-static void l2cap_set_timer(struct l2cap_chan *chan, struct delayed_work *work, long timeout)
-{
- BT_DBG("chan %p state %d timeout %ld", chan, chan->state, timeout);
-
- cancel_delayed_work_sync(work);
-
- schedule_delayed_work(work, timeout);
-}
-
-static void l2cap_clear_timer(struct delayed_work *work)
-{
- cancel_delayed_work_sync(work);
-}
-
static char *state_to_string(int state)
{
switch(state) {