aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-04-04 12:49:00 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-04-04 12:49:00 +0200
commit65762e045587ba74b08a27f7a268966f5d3363ee (patch)
tree0744cfdc10ee38d87508b883ec4889e464c71fe3 /openbsc
parent744568b569343aad6be413bed7ac6a8820cf3bd2 (diff)
gprs: Fix compiler warnings in sgsn_libgtp.c
CC sgsn_libgtp.o sgsn_libgtp.c: In function ‘create_pdp_conf’: sgsn_libgtp.c:262:6: warning: variable ‘rc’ set but not used [-Wunused-but-set-variable] int rc; ^ sgsn_libgtp.c: In function ‘cb_data_ind’: sgsn_libgtp.c:432:6: warning: variable ‘rc’ set but not used [-Wunused-but-set-variable] int rc;
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/gprs/sgsn_libgtp.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/openbsc/src/gprs/sgsn_libgtp.c b/openbsc/src/gprs/sgsn_libgtp.c
index db7b49e22..1a7f07846 100644
--- a/openbsc/src/gprs/sgsn_libgtp.c
+++ b/openbsc/src/gprs/sgsn_libgtp.c
@@ -259,7 +259,6 @@ static int create_pdp_conf(struct pdp_t *pdp, void *cbp, int cause)
{
struct sgsn_pdp_ctx *pctx = cbp;
uint8_t reject_cause;
- int rc;
DEBUGP(DGPRS, "Received CREATE PDP CTX CONF, cause=%d(%s)\n",
cause, get_value_string(gtp_cause_strs, cause));
@@ -304,7 +303,7 @@ reject:
if (pdp)
pdp_freepdp(pdp);
/* Send PDP CTX ACT REJ to MS */
- rc = gsm48_tx_gsm_act_pdp_rej(pctx->mm, pctx->ti, reject_cause,
+ gsm48_tx_gsm_act_pdp_rej(pctx->mm, pctx->ti, reject_cause,
0, NULL);
sgsn_pdp_ctx_free(pctx);
@@ -429,7 +428,6 @@ static int cb_data_ind(struct pdp_t *lib, void *packet, unsigned int len)
struct sgsn_mm_ctx *mm;
struct msgb *msg;
uint8_t *ud;
- int rc;
DEBUGP(DGPRS, "GTP DATA IND from GGSN, length=%u\n", len);
@@ -465,7 +463,7 @@ static int cb_data_ind(struct pdp_t *lib, void *packet, unsigned int len)
pinfo.ptmsi = &mm->p_tmsi;
pinfo.drx_params = mm->drx_parms;
pinfo.qos[0] = 0; // FIXME
- rc = bssgp_tx_paging(mm->nsei, 0, &pinfo);
+ bssgp_tx_paging(mm->nsei, 0, &pinfo);
rate_ctr_inc(&mm->ctrg->ctr[GMM_CTR_PAGING_PS]);
/* FIXME: queue the packet we received from GTP */
break;