thunderbolt: Remove redundant assignment to variable len
authorColin Ian King <colin.i.king@gmail.com>
Wed, 19 Oct 2022 22:57:09 +0000 (23:57 +0100)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Sun, 23 Oct 2022 06:50:50 +0000 (09:50 +0300)
commitb9589c417fedab6b963cf084ef305665166f5326
tree178385d37e5a26fe2b9a8e13a8c3f8686f5d90b0
parent87fa05b6db47403fa4fbe3a8ce8fa619f7c8667e
thunderbolt: Remove redundant assignment to variable len

The variable len is assigned a value that is never read. It is re-assigned
a new value in the following do-while loop and never referenced after
the loop. The assignment is redundant and can be removed.

Cleans up clang scan build warning:
drivers/thunderbolt/xdomain.c:344:2: warning: Value stored to 'len' is
never read [deadcode.DeadStores]

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/xdomain.c