nm_is_running(): Drop duplicate check

NM_AVSTATE_OK is 0xff, so we are checking twice against same value.

Change-Id: Idac56e5eca2b6f6998195ec764fac7edbc8f53e2
This commit is contained in:
Pau Espin 2022-05-04 16:48:16 +02:00
parent b978d1582f
commit 51879bbab9
1 changed files with 1 additions and 1 deletions

View File

@ -760,7 +760,7 @@ uint8_t gsm_ts_tsc(const struct gsm_bts_trx_ts *ts)
bool nm_is_running(const struct gsm_nm_state *s) {
if (s->operational != NM_OPSTATE_ENABLED)
return false;
if ((s->availability != NM_AVSTATE_OK) && (s->availability != 0xff))
if (s->availability != NM_AVSTATE_OK)
return false;
if (s->administrative != NM_STATE_UNLOCKED)
return false;