From: Andrei Emeltchenko Date: Wed, 28 Mar 2012 13:06:41 +0000 (+0300) Subject: Bluetooth: Remove unneeded zero initialization X-Git-Tag: upstream/snapshot3+hdmi~7329^2~3^2~18^2^2~75 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3a602a00a4a9d531b4a71ceed487d84103e4b141;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git Bluetooth: Remove unneeded zero initialization Remove zero initialization since channel is allocated with kzalloc in l2cap_chan_create. Signed-off-by: Andrei Emeltchenko Acked-by: Marcel Holtmann Signed-off-by: Gustavo Padovan --- diff --git a/net/bluetooth/l2cap_sock.c b/net/bluetooth/l2cap_sock.c index 53e563f..1d3e9c3 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); }