diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2022-10-19 23:57:09 +0100 |
---|---|---|
committer | Mika Westerberg <mika.westerberg@linux.intel.com> | 2022-10-23 09:50:50 +0300 |
commit | b9589c417fedab6b963cf084ef305665166f5326 (patch) | |
tree | 178385d37e5a26fe2b9a8e13a8c3f8686f5d90b0 /drivers/thunderbolt/xdomain.c | |
parent | 87fa05b6db47403fa4fbe3a8ce8fa619f7c8667e (diff) | |
download | lwn-b9589c417fedab6b963cf084ef305665166f5326.tar.gz lwn-b9589c417fedab6b963cf084ef305665166f5326.zip |
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>
Diffstat (limited to 'drivers/thunderbolt/xdomain.c')
-rw-r--r-- | drivers/thunderbolt/xdomain.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/thunderbolt/xdomain.c b/drivers/thunderbolt/xdomain.c index ddd8fd2d06f8..cfa83486c9da 100644 --- a/drivers/thunderbolt/xdomain.c +++ b/drivers/thunderbolt/xdomain.c @@ -342,7 +342,6 @@ static int tb_xdp_properties_request(struct tb_ctl *ctl, u64 route, memcpy(&req.src_uuid, src_uuid, sizeof(*src_uuid)); memcpy(&req.dst_uuid, dst_uuid, sizeof(*dst_uuid)); - len = 0; data_len = 0; do { |