Skip to content

Commit a674b83

Browse files
committed
thunderbolt: Make tb_tunnel_one_dp() return void
The boolean return value is never used so we can make this return void instead. Signed-off-by: Mika Westerberg <[email protected]>
1 parent 58b4af9 commit a674b83

File tree

1 file changed

+2
-4
lines changed
  • drivers/thunderbolt

1 file changed

+2
-4
lines changed

drivers/thunderbolt/tb.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1864,7 +1864,7 @@ static struct tb_port *tb_find_dp_out(struct tb *tb, struct tb_port *in)
18641864
return NULL;
18651865
}
18661866

1867-
static bool tb_tunnel_one_dp(struct tb *tb, struct tb_port *in,
1867+
static void tb_tunnel_one_dp(struct tb *tb, struct tb_port *in,
18681868
struct tb_port *out)
18691869
{
18701870
int available_up, available_down, ret, link_nr;
@@ -1954,7 +1954,7 @@ static bool tb_tunnel_one_dp(struct tb *tb, struct tb_port *in,
19541954
* TMU mode to HiFi for CL0s to work.
19551955
*/
19561956
tb_increase_tmu_accuracy(tunnel);
1957-
return true;
1957+
return;
19581958

19591959
err_deactivate:
19601960
tb_tunnel_deactivate(tunnel);
@@ -1971,8 +1971,6 @@ static bool tb_tunnel_one_dp(struct tb *tb, struct tb_port *in,
19711971
pm_runtime_put_autosuspend(&out->sw->dev);
19721972
pm_runtime_mark_last_busy(&in->sw->dev);
19731973
pm_runtime_put_autosuspend(&in->sw->dev);
1974-
1975-
return false;
19761974
}
19771975

19781976
static void tb_tunnel_dp(struct tb *tb)

0 commit comments

Comments
 (0)