Bluetooth: remove redundant assignment to variable icid
authorColin Ian King <colin.king@canonical.com>
Tue, 7 Jan 2020 18:00:13 +0000 (18:00 +0000)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 8 Jan 2020 20:44:22 +0000 (21:44 +0100)
Variable icid is being rc is assigned with a value that is never
read. The assignment is redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/l2cap_core.c

index 1bca608..195459a 100644 (file)
@@ -5081,7 +5081,6 @@ static inline int l2cap_move_channel_req(struct l2cap_conn *conn,
        chan->move_role = L2CAP_MOVE_ROLE_RESPONDER;
        l2cap_move_setup(chan);
        chan->move_id = req->dest_amp_id;
-       icid = chan->dcid;
 
        if (req->dest_amp_id == AMP_ID_BREDR) {
                /* Moving to BR/EDR */