summaryrefslogtreecommitdiffstats
path: root/src/sim.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2011-01-10 15:42:24 -0600
committerDenis Kenzior <denkenz@gmail.com>2011-01-10 15:42:24 -0600
commita4675c50aaf7c130a202abf51e00b9036f509246 (patch)
tree1c5ce68a8e233a7be7643e8d4b79edc6e1226289 /src/sim.c
parent99dd118c5b9d4e0da64e9565bb57c7062d356ba0 (diff)
downloadofono-a4675c50aaf7c130a202abf51e00b9036f509246.tar.bz2
sim: Minor style fixes
Diffstat (limited to 'src/sim.c')
-rw-r--r--src/sim.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/sim.c b/src/sim.c
index 02547a13..d6276471 100644
--- a/src/sim.c
+++ b/src/sim.c
@@ -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;