mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-11-02 04:53:24 +00:00
bts: Arfcn can never be smaller than 0
Remove the condition because it can never be true. Fixes: Coverity CID#1307793
This commit is contained in:
@@ -397,8 +397,7 @@ static int bootstrap_bts(struct gsm_bts *bts)
|
||||
}
|
||||
break;
|
||||
case GSM_BAND_900:
|
||||
if (bts->c0->arfcn < 0 ||
|
||||
(bts->c0->arfcn > 124 && bts->c0->arfcn < 955) ||
|
||||
if ((bts->c0->arfcn > 124 && bts->c0->arfcn < 955) ||
|
||||
bts->c0->arfcn > 1023) {
|
||||
LOGP(DNM, LOGL_ERROR, "GSM900 channel must be between 0-124, 955-1023.\n");
|
||||
return -EINVAL;
|
||||
|
||||
Reference in New Issue
Block a user