From a4675c50aaf7c130a202abf51e00b9036f509246 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Mon, 10 Jan 2011 15:42:24 -0600 Subject: [PATCH] sim: Minor style fixes --- src/sim.c | 6 ++---- 1 file 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;