diff mbox series

[next] thunderbolt: remove duplicated re-assignment of pointer 'out'

Message ID 20231111201543.338893-1-colin.i.king@gmail.com
State New
Headers show
Series [next] thunderbolt: remove duplicated re-assignment of pointer 'out' | expand

Commit Message

Colin Ian King Nov. 11, 2023, 8:15 p.m. UTC
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.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
---
 drivers/thunderbolt/tunnel.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Mika Westerberg Nov. 14, 2023, 12:22 p.m. UTC | #1
On Sat, Nov 11, 2023 at 08:15:43PM +0000, Colin Ian King wrote:
> 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.
> 
> Signed-off-by: Colin Ian King <colin.i.king@gmail.com>

Applied to thunderbolt.git/next, thanks!
diff mbox series

Patch

diff --git a/drivers/thunderbolt/tunnel.c b/drivers/thunderbolt/tunnel.c
index 7534cd3a81f4..8d45cb4f04ab 100644
--- a/drivers/thunderbolt/tunnel.c
+++ b/drivers/thunderbolt/tunnel.c
@@ -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;