Re: [PATCH] thunderbolt: remove redundant assignment to variable len

From: Mika Westerberg
Date: Sun Oct 23 2022 - 02:52:20 EST


On Wed, Oct 19, 2022 at 11:57:09PM +0100, Colin Ian King wrote:
> 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@xxxxxxxxx>

Applied to thunderbolt.git/next, thanks!