Re: [PATCH 1/6] Bluetooth: Create __l2cap_chan_close()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux