summaryrefslogtreecommitdiffstats
path: root/ipc.c
diff options
context:
space:
mode:
authorPaulK <contact@paulk.fr>2012-02-01 17:39:48 +0100
committerPaulK <contact@paulk.fr>2012-02-01 17:39:48 +0100
commit1dd4f9775e43c26e9422223570d313b788a8fe26 (patch)
tree051e2619bc82de7adf403bbc02bfff0c22ab9175 /ipc.c
parentaf39eeec696b44d69b4562e598891d0e497f82e0 (diff)
downloadhardware_ril_samsung-ril-1dd4f9775e43c26e9422223570d313b788a8fe26.zip
hardware_ril_samsung-ril-1dd4f9775e43c26e9422223570d313b788a8fe26.tar.gz
hardware_ril_samsung-ril-1dd4f9775e43c26e9422223570d313b788a8fe26.tar.bz2
Using rc instead of calling the function in the if statement
Diffstat (limited to 'ipc.c')
-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;
}