summaryrefslogtreecommitdiff
path: root/net/bluetooth/l2cap_sock.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2012-03-01 14:25:33 -0800
committerJohan Hedberg <johan.hedberg@intel.com>2012-03-02 00:33:14 +0200
commitba13ccd9b911e043c0f11e60cbb72bd4de194205 (patch)
tree7c8437d2693bfa7c438d5ddc59f329b57974c810 /net/bluetooth/l2cap_sock.c
parentbe22b54e8711734f4cb93ac31723b955fe9dbbe0 (diff)
downloadlinux-3.10-ba13ccd9b911e043c0f11e60cbb72bd4de194205.tar.gz
linux-3.10-ba13ccd9b911e043c0f11e60cbb72bd4de194205.tar.bz2
linux-3.10-ba13ccd9b911e043c0f11e60cbb72bd4de194205.zip
Bluetooth: Update L2CAP timeout constants to use msecs_to_jiffies
The L2CAP timeout constants are always used in form of jiffies. So just include the conversion from msecs in the define itself. This has the advantage of making the code where the timeout is used more readable. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net/bluetooth/l2cap_sock.c')
-rw-r--r--net/bluetooth/l2cap_sock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/l2cap_sock.c b/net/bluetooth/l2cap_sock.c
index 52c94c76577..3da56c5c1fc 100644
--- a/net/bluetooth/l2cap_sock.c
+++ b/net/bluetooth/l2cap_sock.c
@@ -1039,7 +1039,7 @@ static struct sock *l2cap_sock_alloc(struct net *net, struct socket *sock, int p
INIT_LIST_HEAD(&bt_sk(sk)->accept_q);
sk->sk_destruct = l2cap_sock_destruct;
- sk->sk_sndtimeo = msecs_to_jiffies(L2CAP_CONN_TIMEOUT);
+ sk->sk_sndtimeo = L2CAP_CONN_TIMEOUT;
sock_reset_flag(sk, SOCK_ZAPPED);