summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ipc.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/ipc.c b/ipc.c
index 98c902f..cb3f9fa 100644
--- a/ipc.c
+++ b/ipc.c
@@ -161,7 +161,9 @@ int ipc_fmt_create(struct ril_client *client)
}
LOGD("Client open...");
- if(ipc_client_open(ipc_client)) {
+ rc = ipc_client_open(ipc_client);
+
+ if(rc < 0) {
LOGE("%s: failed to open ipc client", __FUNCTION__);
return -1;
}
@@ -342,7 +344,9 @@ int ipc_rfs_create(struct ril_client *client)
}
LOGD("Client open...");
- if(ipc_client_open(ipc_client)) {
+ rc = ipc_client_open(ipc_client);
+
+ if(rc < 0) {
LOGE("%s: failed to open ipc client", __FUNCTION__);
return -1;
}