From 17240037376169369b526ee8a8284961b85adbfa Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 15 Jan 2017 16:55:53 +0100 Subject: 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; ^ --- src/target/firmware/rf/trf6151.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.3