=================================================================== ChangeSet@xxxxxx, 2005-03-19 14:41:18-03:00, acme@xxxxxxxxxxxxxxxxxxxxxx [BLUETOOTH] remove now unneeded references to sk_protinfo Now that sk_protinfo is not used anymore for storing private proto state, we can safely remove the code in the sock destruct path to kfree it. Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Marcel Holtmann Signed-off-by: David S. Miller l2cap.c | 3 --- rfcomm/sock.c | 3 --- sco.c | 3 --- 3 files changed, 9 deletions(-) diff -Nru a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c --- a/net/bluetooth/l2cap.c 2005-03-19 15:01:55 -03:00 +++ b/net/bluetooth/l2cap.c 2005-03-19 15:01:55 -03:00 @@ -264,9 +264,6 @@ skb_queue_purge(&sk->sk_receive_queue); skb_queue_purge(&sk->sk_write_queue); - - if (sk->sk_protinfo) - kfree(sk->sk_protinfo); } static void l2cap_sock_cleanup_listen(struct sock *parent) diff -Nru a/net/bluetooth/rfcomm/sock.c b/net/bluetooth/rfcomm/sock.c --- a/net/bluetooth/rfcomm/sock.c 2005-03-19 15:01:55 -03:00 +++ b/net/bluetooth/rfcomm/sock.c 2005-03-19 15:01:55 -03:00 @@ -196,9 +196,6 @@ rfcomm_dlc_unlock(d); rfcomm_dlc_put(d); - - if (sk->sk_protinfo) - kfree(sk->sk_protinfo); } static void rfcomm_sock_cleanup_listen(struct sock *parent) diff -Nru a/net/bluetooth/sco.c b/net/bluetooth/sco.c --- a/net/bluetooth/sco.c 2005-03-19 15:01:55 -03:00 +++ b/net/bluetooth/sco.c 2005-03-19 15:01:55 -03:00 @@ -334,9 +334,6 @@ skb_queue_purge(&sk->sk_receive_queue); skb_queue_purge(&sk->sk_write_queue); - - if (sk->sk_protinfo) - kfree(sk->sk_protinfo); } static void sco_sock_cleanup_listen(struct sock *parent)