From: Andrei Emeltchenko Date: Thu, 25 Oct 2012 12:20:42 +0000 (+0300) Subject: Bluetooth: trivial: Remove unneeded assignment X-Git-Tag: v3.8-rc1~139^2~17^2~247^2~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fe79c6fea30a7b6d1a8757c9bfce2f6426c68436;p=platform%2Fupstream%2Fkernel-adaptation-pc.git Bluetooth: trivial: Remove unneeded assignment Assignment is not needed here since err is always gets value. Signed-off-by: Andrei Emeltchenko Acked-by: Marcel Holtmann Signed-off-by: Gustavo Padovan --- diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index fae0c70..962a322 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c @@ -4386,7 +4386,7 @@ static void l2cap_logical_finish_create(struct l2cap_chan *chan, set_bit(CONF_OUTPUT_DONE, &chan->conf_state); if (test_bit(CONF_INPUT_DONE, &chan->conf_state)) { - int err = 0; + int err; set_default_fcs(chan);