Skip to contentSkip to conversation

thunderbolt: remove duplicated re-assignment of pointer 'out'

PATCH Applied Colin Ian King 2 participants 2 messages Nov 11, 2023 – Nov 14, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 thunderbolt: remove duplicated re-assignment of pointer 'out'

The pointer 'out' is initialized and then a few statments later being re-assigned the same value. The second re-assignment is redundant and can be removed.

---
 drivers/thunderbolt/tunnel.c | 2 --
 1 file changed, 2 deletions(-)
drivers/thunderbolt/tunnel.c +0 -2
index 7534cd3a81f4..8d45cb4f04ab 100644
@@ -1313,8 +1313,6 @@ static void tb_dp_dump(struct tb_tunnel *tunnel)
 		      "DP IN maximum supported bandwidth %u Mb/s x%u = %u Mb/s\n",
 		      rate, lanes, tb_dp_bandwidth(rate, lanes));
 
-	out = tunnel->dst_port;
-
 	if (tb_port_read(out, &dp_cap, TB_CFG_PORT,
 			 out->cap_adap + DP_LOCAL_CAP, 1))
 		return;
Signature · 1 line
2.39.2
#1 lore raw
Quoted 5 lines · Colin Ian King

The pointer 'out' is initialized and then a few statments later being re-assigned the same value. The second re-assignment is redundant and can be removed.

Applied to thunderbolt.git/next, thanks!