mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-11-01 20:43:47 +00:00
gtphub: cosmetic: early continue for less indent
Sponsored-by: On-Waves ehi
This commit is contained in:
@@ -1276,9 +1276,10 @@ static int gtphub_check_reused_teis(struct gtphub *hub,
|
||||
for_each_side_and_plane(side_idx, plane_idx) {
|
||||
te = &tun->endpoint[side_idx][plane_idx];
|
||||
te2 = &new_tun->endpoint[side_idx][plane_idx];
|
||||
if ((te->tei_orig == te2->tei_orig)
|
||||
&& gsn_addr_same(&te->peer->peer_addr->addr,
|
||||
&te2->peer->peer_addr->addr)) {
|
||||
if ((te->tei_orig != te2->tei_orig)
|
||||
|| !gsn_addr_same(&te->peer->peer_addr->addr,
|
||||
&te2->peer->peer_addr->addr))
|
||||
continue;
|
||||
|
||||
/* The peer is reusing a TEI that I believe to
|
||||
* be part of another tunnel. The other tunnel
|
||||
@@ -1293,11 +1294,11 @@ static int gtphub_check_reused_teis(struct gtphub *hub,
|
||||
gtphub_tunnel_str(tun));
|
||||
LOG(LOGL_NOTICE, "...while establishing tunnel %s\n",
|
||||
gtphub_tunnel_str(new_tun));
|
||||
|
||||
expiring_item_del(&tun->expiry_entry);
|
||||
/* continue to find more matches. There shouldn't be
|
||||
* any, but let's make sure. */
|
||||
}
|
||||
}
|
||||
|
||||
/* Check whether the mapped TEIs assigned to the endpoints are
|
||||
* used anywhere else. */
|
||||
|
||||
Reference in New Issue
Block a user