Message ID | 20231003094005.2676823-6-mika.westerberg@linux.intel.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 6b8ac54f31f985d3abb0b4212187838dd8ea4227 |
Headers | show |
Series | thunderbolt: DisplayPort and logging improvements & cleanups | expand |
diff --git a/drivers/thunderbolt/tb.c b/drivers/thunderbolt/tb.c index 27bd6ca6f99e..fb14f70ef77d 100644 --- a/drivers/thunderbolt/tb.c +++ b/drivers/thunderbolt/tb.c @@ -1311,13 +1311,12 @@ static void tb_tunnel_dp(struct tb *tb) continue; } - tb_port_dbg(port, "DP IN available\n"); + in = port; + tb_port_dbg(in, "DP IN available\n"); out = tb_find_dp_out(tb, port); - if (out) { - in = port; + if (out) break; - } } if (!in) {