diff options
author | PaulK <contact@paulk.fr> | 2012-02-01 17:39:48 +0100 |
---|---|---|
committer | PaulK <contact@paulk.fr> | 2012-02-01 17:39:48 +0100 |
commit | 1dd4f9775e43c26e9422223570d313b788a8fe26 (patch) | |
tree | 051e2619bc82de7adf403bbc02bfff0c22ab9175 | |
parent | af39eeec696b44d69b4562e598891d0e497f82e0 (diff) | |
download | hardware_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
-rw-r--r-- | ipc.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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; } |