[osmo-gmr PATCH 3/7] gmr1_rx: remove to variables set but not used

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Diego Elio Pettenò flameeyes at flameeyes.eu
Wed Jul 4 22:40:08 UTC 2012


This removes two warnings but it might better test the result instead
of just ignoring it.

Signed-off-by: Diego Elio Pettenò <flameeyes at flameeyes.eu>
---
 src/gmr1_rx.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/gmr1_rx.c b/src/gmr1_rx.c
index d48acad..dd028c7 100644
--- a/src/gmr1_rx.c
+++ b/src/gmr1_rx.c
@@ -311,7 +311,7 @@ _rx_tch3_facch(struct chan_desc *cd, struct osmo_cxvec *burst)
 {
 	struct tch3_state *st = &cd->tch_state;
 	sbit_t ebits[104];
-	int rv, bi, sync_id;
+	int bi, sync_id;
 	float toa;
 
 	/* Burst index */
@@ -321,7 +321,7 @@ _rx_tch3_facch(struct chan_desc *cd, struct osmo_cxvec *burst)
 	fprintf(stderr, "[.]   FACCH3 (bi=%d)\n", bi);
 
 	/* Demodulate burst */
-	rv = gmr1_pi4cxpsk_demod(
+	gmr1_pi4cxpsk_demod(
 		&gmr1_nt3_facch_burst,
 		burst, cd->sps, -cd->freq_err,
 		ebits, &sync_id, &toa, NULL
@@ -352,14 +352,14 @@ _rx_tch3_speech(struct chan_desc *cd, struct osmo_cxvec *burst)
 	sbit_t ebits[212];
 	ubit_t sbits[4], ciph[208];
 	uint8_t frame0[10], frame1[10];
-	int rv, conv[2];
+	int conv[2];
 	float toa;
 
 	/* Debug */
 	fprintf(stderr, "[.]   TCH3\n");
 
 	/* Demodulate burst */
-	rv = gmr1_pi4cxpsk_demod(
+	gmr1_pi4cxpsk_demod(
 		&gmr1_nt3_speech_burst,
 		burst, cd->sps, -cd->freq_err,
 		ebits, NULL, &toa, NULL
-- 
1.7.8.6





More information about the OpenBSC mailing list