Bluetooth: Remove unneeded zero initialization
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Wed, 28 Mar 2012 13:06:41 +0000 (16:06 +0300)
committerGustavo Padovan <gustavo@padovan.org>
Wed, 9 May 2012 03:41:36 +0000 (00:41 -0300)
Remove zero initialization since channel is allocated with kzalloc
in l2cap_chan_create.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo@padovan.org>
net/bluetooth/l2cap_sock.c

index 53e563f..1d3e9c3 100644 (file)
@@ -1011,7 +1011,6 @@ static void l2cap_sock_init(struct sock *sk, struct sock *parent)
                chan->tx_win = L2CAP_DEFAULT_TX_WINDOW;
                chan->tx_win_max = L2CAP_DEFAULT_TX_WINDOW;
                chan->sec_level = BT_SECURITY_LOW;
-               chan->flags = 0;
                set_bit(FLAG_FORCE_ACTIVE, &chan->flags);
        }