]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: mgmt: remove redundant assignment to variable cur_len
authorColin Ian King <colin.i.king@gmail.com>
Mon, 7 Mar 2022 15:53:38 +0000 (15:53 +0000)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 18 Mar 2022 16:12:07 +0000 (17:12 +0100)
commitd1419211cc4d3ba89a3dd9394fd854f1154d9f89
tree0d2299f742d6c8133010283354dfa711dd4bfa87
parent1739517e9161f642770b0ac325af86c0f91ae5d1
Bluetooth: mgmt: remove redundant assignment to variable cur_len

Variable cur_len is being ininitialized with a value in the start of
a for-loop but this is never read, it is being re-assigned a new value
on the first statement in the for-loop.  The initialization is redundant
and can be removed.

Cleans up clang scan build warning:
net/bluetooth/mgmt.c:7958:14: warning: Although the value stored to 'cur_len'
is used in the enclosing expression, the value is never actually read
from 'cur_len' [deadcode.DeadStores]

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/mgmt.c