]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
thunderbolt: No need to log an error if tb_switch_lane_bonding_enable() fails
authorMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 2 Apr 2020 11:28:18 +0000 (14:28 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 3 Sep 2020 09:06:40 +0000 (12:06 +0300)
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>
drivers/thunderbolt/tb.c

index f507815040ebd6aca20cf036005bde134c9adc45..98f268a818a080d03ad5e4ac7ec7d46149a6778f 100644 (file)
@@ -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);
        }