summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-01-15 16:55:53 +0100
committerHarald Welte <laforge@gnumonks.org>2017-01-15 19:18:38 +0100
commit17240037376169369b526ee8a8284961b85adbfa (patch)
tree04eb15cd551e5ff38f18a0f873ca7132ec7976e5 /src
parent2400386c25afe1af68531ca9689618bfa1365bdc (diff)
trf6151: Fix setting of uplink ARFCN
Somebody (me?) wrote exclamation marks instead of pipe symbols. Found by a modern gcc: rf/trf6151.c: In function 'trf6151_set_arfcn': rf/trf6151.c:439:8: warning: comparison is always true due to limited range of data type [-Wtype-limits] arfcn != ~ARFCN_UPLINK; ^ rf/trf6151.c:439:2: warning: statement with no effect [-Wunused-value] arfcn != ~ARFCN_UPLINK; ^
Diffstat (limited to 'src')
-rw-r--r--src/target/firmware/rf/trf6151.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/firmware/rf/trf6151.c b/src/target/firmware/rf/trf6151.c
index 0a910091..36516fea 100644
--- a/src/target/firmware/rf/trf6151.c
+++ b/src/target/firmware/rf/trf6151.c
@@ -436,7 +436,7 @@ void trf6151_set_arfcn(uint16_t arfcn, int tx)
enum trf6151_gsm_band pll_band;
uplink = !!(arfcn & ARFCN_UPLINK);
- arfcn != ~ARFCN_UPLINK;
+ arfcn |= ~ARFCN_UPLINK;
switch (gsm_arfcn2band(arfcn)) {
case GSM_BAND_850: