diff options
author | Colin Ian King <colin.king@canonical.com> | 2020-01-07 18:00:13 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2020-01-08 21:44:22 +0100 |
commit | 788d10c02f7ed1c971445da5e2addfc70f620311 (patch) | |
tree | f8e9d94a582a745a58263b8a6e3a62f01419a7e4 /net | |
parent | 19220f35b3708dc069135046061fbe7366d5cb6e (diff) | |
download | linux-788d10c02f7ed1c971445da5e2addfc70f620311.tar.gz linux-788d10c02f7ed1c971445da5e2addfc70f620311.tar.bz2 linux-788d10c02f7ed1c971445da5e2addfc70f620311.zip |
Bluetooth: remove redundant assignment to variable icid
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/bluetooth/l2cap_core.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index 1bca608e0170..195459a1e53e 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c @@ -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 */ |