summaryrefslogtreecommitdiff
path: root/net/bluetooth/l2cap_sock.c
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2012-03-28 16:06:41 +0300
committerGustavo Padovan <gustavo@padovan.org>2012-05-09 00:41:36 -0300
commit3a602a00a4a9d531b4a71ceed487d84103e4b141 (patch)
treeb85436b0779b51cb66067f18df00509bfb872c63 /net/bluetooth/l2cap_sock.c
parent0dea0141a9d9c33a669c546f8f5d9f44a0557375 (diff)
Bluetooth: Remove unneeded zero initialization
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>
Diffstat (limited to 'net/bluetooth/l2cap_sock.c')
-rw-r--r--net/bluetooth/l2cap_sock.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/bluetooth/l2cap_sock.c b/net/bluetooth/l2cap_sock.c
index 53e563f01723..1d3e9c328a36 100644
--- a/net/bluetooth/l2cap_sock.c
+++ b/net/bluetooth/l2cap_sock.c
@@ -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);
}