diff options
author | David Miller <davem@davemloft.net> | 2011-05-19 18:09:00 -0400 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-06-08 16:58:15 -0300 |
commit | 75fde9ee1bca0c0c004aadaebdedf17370f93f18 (patch) | |
tree | e36a852065a41a63be4133323c86dc20edbdfda5 /net/bluetooth/rfcomm | |
parent | 78676a06260a4162b6837a8a2fb954445004ebc2 (diff) | |
download | linux-stable-75fde9ee1bca0c0c004aadaebdedf17370f93f18.tar.gz linux-stable-75fde9ee1bca0c0c004aadaebdedf17370f93f18.tar.bz2 linux-stable-75fde9ee1bca0c0c004aadaebdedf17370f93f18.zip |
Bluetooth: Kill set but not used variable 'l2cap_sk' in rfcomm_sock_getsockopt_old()
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net/bluetooth/rfcomm')
-rw-r--r-- | net/bluetooth/rfcomm/sock.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/bluetooth/rfcomm/sock.c b/net/bluetooth/rfcomm/sock.c index 386cfaffd4b7..bcf077cfd73e 100644 --- a/net/bluetooth/rfcomm/sock.c +++ b/net/bluetooth/rfcomm/sock.c @@ -741,7 +741,6 @@ static int rfcomm_sock_setsockopt(struct socket *sock, int level, int optname, c static int rfcomm_sock_getsockopt_old(struct socket *sock, int optname, char __user *optval, int __user *optlen) { struct sock *sk = sock->sk; - struct sock *l2cap_sk; struct rfcomm_conninfo cinfo; struct l2cap_conn *conn = l2cap_pi(sk)->chan->conn; int len, err = 0; @@ -786,8 +785,6 @@ static int rfcomm_sock_getsockopt_old(struct socket *sock, int optname, char __u break; } - l2cap_sk = rfcomm_pi(sk)->dlc->session->sock->sk; - cinfo.hci_handle = conn->hcon->handle; memcpy(cinfo.dev_class, conn->hcon->dev_class, 3); |