diff options
| author | 2011-05-04 19:35:27 -0300 | |
|---|---|---|
| committer | 2011-06-08 16:58:16 -0300 | |
| commit | 500698d3fd987f6c405d6d5f68fdf535a539e71e (patch) | |
| tree | 458c7da09d366e37f133ef131b56e8dbdb6c2211 /net/bluetooth/l2cap_sock.c | |
| parent | Bluetooth: create channel timer to replace sk_timer (diff) | |
| download | linux-dev-500698d3fd987f6c405d6d5f68fdf535a539e71e.tar.xz linux-dev-500698d3fd987f6c405d6d5f68fdf535a539e71e.zip | |
Bluetooth: Remove export of l2cap_chan_clear_timer()
The call to l2cap_chan_clear_timer() is not really needed in l2cap_sock.c.
This patch also adds a call to l2cap_chan_clear_timer() to the only place
in __l2cap_sock_close() that wasn't calling it. It's safe call it there
because l2cap_chan_clear_timer() check first for timer_peding().
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net/bluetooth/l2cap_sock.c')
| -rw-r--r-- | net/bluetooth/l2cap_sock.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/bluetooth/l2cap_sock.c b/net/bluetooth/l2cap_sock.c index 89433a439bd8..7d87d1f664cc 100644 --- a/net/bluetooth/l2cap_sock.c +++ b/net/bluetooth/l2cap_sock.c @@ -707,7 +707,6 @@ static int l2cap_sock_shutdown(struct socket *sock, int how) err = __l2cap_wait_ack(sk); sk->sk_shutdown = SHUTDOWN_MASK; - l2cap_chan_clear_timer(chan); __l2cap_chan_close(chan, 0); if (sock_flag(sk, SOCK_LINGER) && sk->sk_lingertime) |
