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:
Holger Hans Peter Freyther 2015-06-20 18:45:35 +02:00
parent 797eb7b592
commit 57ee780789
1 changed files with 1 additions and 2 deletions

View File

@ -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;