[Replicant] [PATCH 3/3] sim: ril_request_get_sim_status: remove unused variable
Denis 'GNUtoo' Carikli
GNUtoo at cyberdimension.org
Tue Jun 25 13:57:47 UTC 2019
The card_status is not declared globally, so there is no point
in re-requesting the data and doing nothing with it.
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo at cyberdimension.org>
---
sim.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/sim.c b/sim.c
index 50b62e2..ec35b90 100644
--- a/sim.c
+++ b/sim.c
@@ -251,7 +251,6 @@ int ril_request_get_sim_status(__attribute__((unused)) void *data,
{
void *card_status_data;
size_t card_status_size;
- RIL_CardStatus_compat *card_status;
struct ril_request *request;
int rc;
@@ -267,7 +266,6 @@ int ril_request_get_sim_status(__attribute__((unused)) void *data,
card_status_data = ril_request_data_get(RIL_REQUEST_GET_SIM_STATUS);
if (card_status_data != NULL && card_status_size >= sizeof(RIL_CardStatus_compat)) {
- card_status = (RIL_CardStatus_compat *) ril_request_data_get(RIL_REQUEST_GET_SIM_STATUS);
ril_request_complete(token, RIL_E_SUCCESS, card_status_data, card_status_size);
free(card_status_data);
--
2.21.0
More information about the Replicant
mailing list