gprs: Fix compiler warnings in gprs_sndcp.c
CC gprs_sndcp.o gprs_sndcp.c: In function ‘defrag_input’: gprs_sndcp.c:188:25: warning: variable ‘scomph’ set but not used [-Wunused-but-set-variable] struct sndcp_comp_hdr *scomph = NULL; ^ gprs_sndcp.c: In function ‘sndcp_llunitdata_ind’: gprs_sndcp.c:512:11: warning: variable ‘npdu_num’ set but not used [-Wunused-but-set-variable] uint16_t npdu_num; ^ gprs_sndcp.c: At top level: gprs_sndcp.c:565:12: warning: ‘sndcp_ll_reset_ind’ defined but not used [-Wunused-function] static int sndcp_ll_reset_ind(struct gprs_sndcp_entity *se) ^ gprs_sndcp.c:573:12: warning: ‘sndcp_ll_status_ind’ defined but not used [-Wunused-function] static int sndcp_ll_status_ind() ^
This commit is contained in:
parent
1768a5765d
commit
cfee952e23
|
@ -185,7 +185,6 @@ static int defrag_input(struct gprs_sndcp_entity *sne, struct msgb *msg, uint8_t
|
||||||
unsigned int len)
|
unsigned int len)
|
||||||
{
|
{
|
||||||
struct sndcp_common_hdr *sch;
|
struct sndcp_common_hdr *sch;
|
||||||
struct sndcp_comp_hdr *scomph = NULL;
|
|
||||||
struct sndcp_udata_hdr *suh;
|
struct sndcp_udata_hdr *suh;
|
||||||
uint16_t npdu_num;
|
uint16_t npdu_num;
|
||||||
uint8_t *data;
|
uint8_t *data;
|
||||||
|
@ -193,7 +192,6 @@ static int defrag_input(struct gprs_sndcp_entity *sne, struct msgb *msg, uint8_t
|
||||||
|
|
||||||
sch = (struct sndcp_common_hdr *) hdr;
|
sch = (struct sndcp_common_hdr *) hdr;
|
||||||
if (sch->first) {
|
if (sch->first) {
|
||||||
scomph = (struct sndcp_comp_hdr *) (hdr + 1);
|
|
||||||
suh = (struct sndcp_udata_hdr *) (hdr + 1 + sizeof(struct sndcp_common_hdr));
|
suh = (struct sndcp_udata_hdr *) (hdr + 1 + sizeof(struct sndcp_common_hdr));
|
||||||
} else
|
} else
|
||||||
suh = (struct sndcp_udata_hdr *) (hdr + sizeof(struct sndcp_common_hdr));
|
suh = (struct sndcp_udata_hdr *) (hdr + sizeof(struct sndcp_common_hdr));
|
||||||
|
@ -509,7 +507,7 @@ int sndcp_llunitdata_ind(struct msgb *msg, struct gprs_llc_lle *lle,
|
||||||
struct sndcp_comp_hdr *scomph = NULL;
|
struct sndcp_comp_hdr *scomph = NULL;
|
||||||
struct sndcp_udata_hdr *suh;
|
struct sndcp_udata_hdr *suh;
|
||||||
uint8_t *npdu;
|
uint8_t *npdu;
|
||||||
uint16_t npdu_num;
|
uint16_t npdu_num __attribute__((unused));
|
||||||
int npdu_len;
|
int npdu_len;
|
||||||
|
|
||||||
sch = (struct sndcp_common_hdr *) hdr;
|
sch = (struct sndcp_common_hdr *) hdr;
|
||||||
|
@ -561,6 +559,7 @@ int sndcp_llunitdata_ind(struct msgb *msg, struct gprs_llc_lle *lle,
|
||||||
return sgsn_rx_sndcp_ud_ind(&sne->ra_id, lle->llme->tlli, sne->nsapi, msg, npdu_len, npdu);
|
return sgsn_rx_sndcp_ud_ind(&sne->ra_id, lle->llme->tlli, sne->nsapi, msg, npdu_len, npdu);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
/* Section 5.1.2.1 LL-RESET.ind */
|
/* Section 5.1.2.1 LL-RESET.ind */
|
||||||
static int sndcp_ll_reset_ind(struct gprs_sndcp_entity *se)
|
static int sndcp_ll_reset_ind(struct gprs_sndcp_entity *se)
|
||||||
{
|
{
|
||||||
|
@ -577,7 +576,6 @@ static int sndcp_ll_status_ind()
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
|
||||||
static struct sndcp_state_list {{
|
static struct sndcp_state_list {{
|
||||||
uint32_t states;
|
uint32_t states;
|
||||||
unsigned int type;
|
unsigned int type;
|
||||||
|
|
Loading…
Reference in New Issue