From 65762e045587ba74b08a27f7a268966f5d3363ee Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Fri, 4 Apr 2014 12:49:00 +0200 Subject: gprs: Fix compiler warnings in sgsn_libgtp.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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; --- openbsc/src/gprs/sgsn_libgtp.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'openbsc') 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; -- cgit v1.2.3