[rilmodem] Minor phonebook code cleanup

Signed-off-by: Tommi Kenakkala <tommi.kenakkala@oss.tieto.com>
This commit is contained in:
Tommi Kenakkala
2014-08-26 11:03:10 +03:00
parent edc0035d18
commit c99e70f97a

View File

@@ -747,9 +747,6 @@ static void pb_adn_sim_info_cb(const struct ofono_error *error,
if (!cbd)
goto error;
pb = cbd->user;
cb = cbd->cb;
pbd = ofono_phonebook_get_data(pb);
file_info = NULL;
if (!pbd)
@@ -834,7 +831,7 @@ static void pb_content_data_cb(const struct ofono_error *error,
/*
* These checks are crash hacks.
* 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
* change this.
*/