Hi Padovan, On Thu, May 12, 2011 at 1:32 AM, Gustavo F. Padovan <padovan@xxxxxxxxxxxxxx> wrote: > +void __l2cap_chan_close(struct l2cap_chan *chan, int reason) > +{ > + struct l2cap_conn *conn = chan->conn; > + struct sock *sk = chan->sk; > + > + BT_DBG("chan %p state %d socket %p", chan, sk->sk_state, sk->sk_socket); > + > + switch (sk->sk_state) { > + case BT_LISTEN: > + l2cap_chan_cleanup_listen(chan->sk); Cosmetic: you can use just "sk" above. > + break; > + Regards, -- Anderson Lizardo Instituto Nokia de Tecnologia - INdT Manaus - Brazil -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html