diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2019-02-02 12:35:51 +0300 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2019-02-02 12:36:35 +0300 |
commit | 6c04bd39c4a8bb99397058ec3ccbf9f00d8b9617 (patch) | |
tree | bb59d869712bc0eb1320e645a6a0121a13895bfe /src/host/layer23 | |
parent | 7ad1df2582e32e24d0465cd37f0417dc1930db77 (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/host/layer23')
-rw-r--r-- | src/host/layer23/src/common/sim.c | 2 |
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 a63ae2a7..f214e679 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 */ |