network: One more trivial fix

total_length and record_length are the same in this context, but using
total_length makes the code more readable
This commit is contained in:
Denis Kenzior 2011-04-14 17:33:40 -05:00
parent 7e21cb3b38
commit d6838a2095
1 changed files with 2 additions and 2 deletions

View File

@ -1422,11 +1422,11 @@ static void sim_csp_read_cb(int ok, int total_length, int record,
* manual selection is to be enabled. The latter is also the
* default.
*/
while (i < record_length &&
while (i < total_length &&
data[i] != SIM_CSP_ENTRY_VALUE_ADDED_SERVICES)
i += 2;
if (i == record_length)
if (i == total_length)
return;
if ((data[i + 1] & 0x80) != 0) {