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:
Vadim Yanitskiy 2019-02-02 12:35:51 +03:00
parent 7ad1df2582
commit 6c04bd39c4
1 changed files with 0 additions and 2 deletions

View File

@ -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 msgb *msg = sim->job_msg;
struct sim_hdr *sh;
uint8_t *payload;
uint16_t payload_len;
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;
}
payload = msg->data + sizeof(*sh);
payload_len = msg->len - sizeof(*sh);
/* remove data */