diff options
author | Denis Kenzior <denkenz@gmail.com> | 2012-06-19 12:54:37 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2012-06-19 12:54:37 -0500 |
commit | d69269b77ff20e5c294a9816f0254f5b8829dfae (patch) | |
tree | f82413b80d04faca671dcd7c21b41da701c956be /src/sim.c | |
parent | 9e5ad93ec0ad6f5ecc1989763151fe78175d38ba (diff) | |
download | ofono-d69269b77ff20e5c294a9816f0254f5b8829dfae.tar.bz2 |
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.
Diffstat (limited to 'src/sim.c')
-rw-r--r-- | src/sim.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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: |