mirror of git://git.sysmocom.de/ofono
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:
parent
7e21cb3b38
commit
d6838a2095
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue