common/sim.c: get rid of unused 'payload' pointer
This change fixes the following compiler warning: sim.c: In function ‘gsm_sim_reply’: sim.c:149:11: warning: variable ‘payload’ set but not used [-Wunused-but-set-variable] uint8_t *payload; Change-Id: I3767b23bb1b28d3f4bb515d399bce160ba2eee09
This commit is contained in:
parent
7ad1df2582
commit
6c04bd39c4
|
@ -146,7 +146,6 @@ void gsm_sim_reply(struct osmocom_ms *ms, uint8_t result_type, uint8_t *result,
|
||||||
struct gsm_sim *sim = &ms->sim;
|
struct gsm_sim *sim = &ms->sim;
|
||||||
struct msgb *msg = sim->job_msg;
|
struct msgb *msg = sim->job_msg;
|
||||||
struct sim_hdr *sh;
|
struct sim_hdr *sh;
|
||||||
uint8_t *payload;
|
|
||||||
uint16_t payload_len;
|
uint16_t payload_len;
|
||||||
struct gsm_sim_handler *handler;
|
struct gsm_sim_handler *handler;
|
||||||
|
|
||||||
|
@ -165,7 +164,6 @@ void gsm_sim_reply(struct osmocom_ms *ms, uint8_t result_type, uint8_t *result,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
payload = msg->data + sizeof(*sh);
|
|
||||||
payload_len = msg->len - sizeof(*sh);
|
payload_len = msg->len - sizeof(*sh);
|
||||||
|
|
||||||
/* remove data */
|
/* remove data */
|
||||||
|
|
Loading…
Reference in New Issue