From c99e70f97a397875cceefc0d96e96f0f2df6d22b Mon Sep 17 00:00:00 2001 From: Tommi Kenakkala Date: Tue, 26 Aug 2014 11:03:10 +0300 Subject: [PATCH] [rilmodem] Minor phonebook code cleanup Signed-off-by: Tommi Kenakkala --- ofono/drivers/rilmodem/phonebook.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ofono/drivers/rilmodem/phonebook.c b/ofono/drivers/rilmodem/phonebook.c index 6ca3df4a..e447cd6c 100644 --- a/ofono/drivers/rilmodem/phonebook.c +++ b/ofono/drivers/rilmodem/phonebook.c @@ -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. */