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:
parent
797eb7b592
commit
57ee780789
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue