diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-11-03 20:14:34 +0100 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-11-03 20:14:38 +0100 |
commit | 84dceb52453ede5a82be4c1b0084653294f8b72c (patch) | |
tree | 0e57d856815b2088c93bf6c95edcae3bdf8bd804 | |
parent | 3ca3243e57dbd452bf0d0d53220b7999a8733bac (diff) |
abis: Drop unneded if condition in else clause
priv->current_bsc will for sure be != last, otherwise it would have
entered the if clause above it.
Change-Id: I0a6519f7b93f0b45c67d19fef4f50daeeefc7340
-rw-r--r-- | src/common/abis.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/abis.c b/src/common/abis.c index c0cd18cf..06e6f3b4 100644 --- a/src/common/abis.c +++ b/src/common/abis.c @@ -126,7 +126,7 @@ static int pick_next_bsc(struct osmo_fsm_inst *fi) if (!priv->current_bsc || priv->current_bsc == last) /* Pick first one (wrap around): */ priv->current_bsc = (struct bsc_oml_host *)llist_first_entry(&bts->bsc_oml_hosts, struct bsc_oml_host, list); - else if (priv->current_bsc != last) + else priv->current_bsc = (struct bsc_oml_host *)llist_entry(priv->current_bsc->list.next, struct bsc_oml_host, list); return 0; |