summaryrefslogtreecommitdiff
path: root/drivers/thunderbolt
diff options
context:
space:
mode:
authorMika Westerberg <mika.westerberg@linux.intel.com>2020-04-02 14:28:18 +0300
committerMika Westerberg <mika.westerberg@linux.intel.com>2020-09-03 12:06:40 +0300
commit2ca3263a806d11d37387ae4cf79c2474b2a6f2dd (patch)
treeacc711aad7edaebcfb5f04bde0de8256c28a7909 /drivers/thunderbolt
parentedfbd68bb51e3747c91dbafb5ed0e45cba202c21 (diff)
downloadlinux-2ca3263a806d11d37387ae4cf79c2474b2a6f2dd.tar.xz
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: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'drivers/thunderbolt')
-rw-r--r--drivers/thunderbolt/tb.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/thunderbolt/tb.c b/drivers/thunderbolt/tb.c
index f507815040eb..98f268a818a0 100644
--- a/drivers/thunderbolt/tb.c
+++ b/drivers/thunderbolt/tb.c
@@ -592,8 +592,7 @@ static void tb_scan_port(struct tb_port *port)
}
/* Enable lane bonding if supported */
- if (tb_switch_lane_bonding_enable(sw))
- tb_sw_warn(sw, "failed to enable lane bonding\n");
+ tb_switch_lane_bonding_enable(sw);
if (tb_enable_tmu(sw))
tb_sw_warn(sw, "failed to enable TMU\n");
@@ -1245,8 +1244,7 @@ static void tb_restore_children(struct tb_switch *sw)
if (!tb_port_has_remote(port))
continue;
- if (tb_switch_lane_bonding_enable(port->remote->sw))
- dev_warn(&sw->dev, "failed to restore lane bonding\n");
+ tb_switch_lane_bonding_enable(port->remote->sw);
tb_restore_children(port->remote->sw);
}