From d69269b77ff20e5c294a9816f0254f5b8829dfae Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 19 Jun 2012 12:54:37 -0500 Subject: sim: Don't re-init the SIM needlessly When calling ChangePin with the wrong original PIN, we're still left in the READY state. Do not re-initialize the SIM needlessly in this case. --- src/sim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sim.c') diff --git a/src/sim.c b/src/sim.c index e7885fb4..9fea5fd5 100644 --- a/src/sim.c +++ b/src/sim.c @@ -2732,11 +2732,11 @@ checkdone: switch (pin_type) { case OFONO_SIM_PASSWORD_SIM_PIN2: case OFONO_SIM_PASSWORD_SIM_PUK2: + case OFONO_SIM_PASSWORD_NONE: if (sim->state == OFONO_SIM_STATE_READY) break; /* Fall through */ - case OFONO_SIM_PASSWORD_NONE: sim_initialize_after_pin(sim); break; default: -- cgit v1.2.3