summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2019-02-02 12:35:51 +0300
committerVadim Yanitskiy <axilirator@gmail.com>2019-02-02 12:36:35 +0300
commit6c04bd39c4a8bb99397058ec3ccbf9f00d8b9617 (patch)
treebb59d869712bc0eb1320e645a6a0121a13895bfe /src
parent7ad1df2582e32e24d0465cd37f0417dc1930db77 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/host/layer23/src/common/sim.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/host/layer23/src/common/sim.c b/src/host/layer23/src/common/sim.c
index a63ae2a..f214e67 100644
--- a/src/host/layer23/src/common/sim.c
+++ b/src/host/layer23/src/common/sim.c
@@ -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 */