mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-10-23 08:12:01 +00:00
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;
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user