sim: Minor style fixes

This commit is contained in:
Denis Kenzior 2011-01-10 15:42:24 -06:00
parent 99dd118c5b
commit a4675c50aa
1 changed files with 2 additions and 4 deletions

View File

@ -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;