Commit 2ca3263a authored by Mika Westerberg's avatar Mika Westerberg

thunderbolt: No need to log an error if tb_switch_lane_bonding_enable() fails

The function already logs an error if it fails so get rid of the
duplication.
Signed-off-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
parent edfbd68b
...@@ -592,8 +592,7 @@ static void tb_scan_port(struct tb_port *port) ...@@ -592,8 +592,7 @@ static void tb_scan_port(struct tb_port *port)
} }
/* Enable lane bonding if supported */ /* Enable lane bonding if supported */
if (tb_switch_lane_bonding_enable(sw)) tb_switch_lane_bonding_enable(sw);
tb_sw_warn(sw, "failed to enable lane bonding\n");
if (tb_enable_tmu(sw)) if (tb_enable_tmu(sw))
tb_sw_warn(sw, "failed to enable TMU\n"); tb_sw_warn(sw, "failed to enable TMU\n");
...@@ -1245,8 +1244,7 @@ static void tb_restore_children(struct tb_switch *sw) ...@@ -1245,8 +1244,7 @@ static void tb_restore_children(struct tb_switch *sw)
if (!tb_port_has_remote(port)) if (!tb_port_has_remote(port))
continue; continue;
if (tb_switch_lane_bonding_enable(port->remote->sw)) tb_switch_lane_bonding_enable(port->remote->sw);
dev_warn(&sw->dev, "failed to restore lane bonding\n");
tb_restore_children(port->remote->sw); tb_restore_children(port->remote->sw);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment