mirror of
https://github.com/sailfishos/ofono
synced 2025-12-02 23:51:10 +08:00
[rilmodem] Minor phonebook code cleanup
Signed-off-by: Tommi Kenakkala <tommi.kenakkala@oss.tieto.com>
This commit is contained in:
@@ -747,9 +747,6 @@ static void pb_adn_sim_info_cb(const struct ofono_error *error,
|
|||||||
if (!cbd)
|
if (!cbd)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
pb = cbd->user;
|
|
||||||
cb = cbd->cb;
|
|
||||||
pbd = ofono_phonebook_get_data(pb);
|
|
||||||
file_info = NULL;
|
file_info = NULL;
|
||||||
|
|
||||||
if (!pbd)
|
if (!pbd)
|
||||||
@@ -834,7 +831,7 @@ static void pb_content_data_cb(const struct ofono_error *error,
|
|||||||
/*
|
/*
|
||||||
* These checks are crash hacks.
|
* These checks are crash hacks.
|
||||||
* AFAIK there's a possibility that we end up here and pb_next is NULL
|
* AFAIK there's a possibility that we end up here and pb_next is NULL
|
||||||
* in case remove hase been called while phonebook reading is in
|
* in case remove has been called while phonebook reading is in
|
||||||
* process. If you find better solution to this issue feel free to
|
* process. If you find better solution to this issue feel free to
|
||||||
* change this.
|
* change this.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user