diff options
Diffstat (limited to 'drivers/atmodem/phonebook.c')
-rw-r--r-- | drivers/atmodem/phonebook.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/atmodem/phonebook.c b/drivers/atmodem/phonebook.c index 64aa05e8..97213db5 100644 --- a/drivers/atmodem/phonebook.c +++ b/drivers/atmodem/phonebook.c @@ -368,9 +368,6 @@ static void at_export_entries(struct ofono_phonebook *pb, const char *storage, struct cb_data *cbd = cb_data_new(cb, data); char buf[32]; - if (cbd == NULL) - goto error; - cbd->user = pb; snprintf(buf, sizeof(buf), "AT+CPBS=\"%s\"", storage); @@ -378,7 +375,6 @@ static void at_export_entries(struct ofono_phonebook *pb, const char *storage, at_select_storage_cb, cbd, NULL) > 0) return; -error: g_free(cbd); CALLBACK_WITH_FAILURE(cb, data); |