summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2015-12-17 20:32:28 -0600
committerDenis Kenzior <denkenz@gmail.com>2015-12-17 20:32:28 -0600
commit5ef046d63d2f78fd5166b4104f434827ac07e182 (patch)
treed78509369aaad9190a1a2739a8acbcd1173e622b /drivers
parent548a11f5862668bba74d102d84f3c71282013bf7 (diff)
downloadofono-5ef046d63d2f78fd5166b4104f434827ac07e182.tar.bz2
rilmodem: Initialize ofono_error correctly
Diffstat (limited to 'drivers')
-rw-r--r--drivers/rilmodem/sim.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/rilmodem/sim.c b/drivers/rilmodem/sim.c
index 3cc20bb3..02399ffb 100644
--- a/drivers/rilmodem/sim.c
+++ b/drivers/rilmodem/sim.c
@@ -364,7 +364,6 @@ static void ril_file_io_cb(struct ril_msg *message, gpointer user_data)
struct cb_data *cbd = user_data;
ofono_sim_read_cb_t cb = cbd->cb;
struct sim_data *sd = cbd->user;
- struct ofono_error error;
int sw1, sw2;
char *hex_response;
unsigned char *response = NULL;
@@ -391,7 +390,7 @@ static void ril_file_io_cb(struct ril_msg *message, gpointer user_data)
goto error;
}
- cb(&error, response, len, cbd->data);
+ CALLBACK_WITH_SUCCESS(cb, response, len, cbd->data);
g_free(response);
return;