cosmetic: dissolve error-goto with single source in handover_start()

Change-Id: I9c7d10c36f3f868100c1aa2d0433ceed74161175
This commit is contained in:
Neels Hofmeyr 2020-08-29 23:25:38 +00:00
parent 09ea10d30d
commit 8a3b507dea
1 changed files with 4 additions and 5 deletions

View File

@ -330,8 +330,10 @@ void handover_start(struct handover_out_req *req)
ho->target_cell = req->target_nik;
if (find_handover_target_cell(&local_target_cell, &remote_target_cell,
conn, search_for, true))
goto no_handover;
conn, search_for, true)) {
handover_end(conn, HO_RESULT_FAIL_NO_CHANNEL);
return;
}
if (local_target_cell) {
ho->new_bts = local_target_cell;
@ -346,9 +348,6 @@ void handover_start(struct handover_out_req *req)
/* should never reach this, because find_handover_target_cell() would have returned error. */
OSMO_ASSERT(false);
no_handover:
handover_end(conn, HO_RESULT_FAIL_NO_CHANNEL);
}
/*! Hand over the specified logical channel to the specified new BTS and possibly change the lchan type.