diff options
author | Denis Kenzior <denkenz@gmail.com> | 2011-01-10 15:42:24 -0600 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2011-01-10 15:42:24 -0600 |
commit | a4675c50aaf7c130a202abf51e00b9036f509246 (patch) | |
tree | 1c5ce68a8e233a7be7643e8d4b79edc6e1226289 /src/sim.c | |
parent | 99dd118c5b9d4e0da64e9565bb57c7062d356ba0 (diff) | |
download | ofono-a4675c50aaf7c130a202abf51e00b9036f509246.tar.bz2 |
sim: Minor style fixes
Diffstat (limited to 'src/sim.c')
-rw-r--r-- | src/sim.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -259,14 +259,12 @@ static void **get_pin_retries(struct ofono_sim *sim) if (sim->pin_retries[i] == -1) continue; - nelem+=1; + nelem += 1; } ret = g_new0(void *, nelem * 2 + 1); - nelem = 0; - - for (i = 1; i < OFONO_SIM_PASSWORD_INVALID; i++) { + for (i = 1, nelem = 0; i < OFONO_SIM_PASSWORD_INVALID; i++) { if (sim->pin_retries[i] == -1) continue; |