thunderbolt: Remove duplicated re-assignment of pointer 'out'
authorColin Ian King <colin.i.king@gmail.com>
Sat, 11 Nov 2023 20:15:43 +0000 (20:15 +0000)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 14 Nov 2023 12:17:29 +0000 (14:17 +0200)
The pointer 'out' is initialized and then a few statements 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>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/tunnel.c

index 7534cd3a81f451aa090343be0c25f995aef9fe6d..8d45cb4f04abfff34e0932a8b2ec0e3a66727e00 100644 (file)
@@ -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;