summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoo-Hyun Choi <sh9.choi@samsung.com>2013-09-17 14:15:58 +0900
committerSoo-Hyun Choi <sh9.choi@samsung.com>2013-09-17 14:24:35 +0900
commitc91cc76d88a81326f5cf461e1ecbcd28b2f20c5f (patch)
treeecbb33bb402d03309fa9e1d5a822c6ee8d6acebf
parentf2aeefd3207378de0f8def345449e376cb05260b (diff)
downloadweb-provider-c91cc76d88a81326f5cf461e1ecbcd28b2f20c5f.tar.gz
web-provider-c91cc76d88a81326f5cf461e1ecbcd28b2f20c5f.tar.bz2
web-provider-c91cc76d88a81326f5cf461e1ecbcd28b2f20c5f.zip
Tidied if-statement
[Issue#] N/A [Problem] Unnecessary variables declared. [Cause] N/A [Solution] Arranged if-statement neatly. Change-Id: I0d499813ae4c2b3ad44b3ed5c8d8b52c2c766210
-rwxr-xr-xsrc/Daemon/BoxDaemonImpl.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/Daemon/BoxDaemonImpl.cpp b/src/Daemon/BoxDaemonImpl.cpp
index c4ddad7..991cda2 100755
--- a/src/Daemon/BoxDaemonImpl.cpp
+++ b/src/Daemon/BoxDaemonImpl.cpp
@@ -115,23 +115,18 @@ bool BoxDaemonImpl::stop()
bool BoxDaemonImpl::handleAppService(service_h service)
{
LogD("enter");
- int ret;
bool result = false;
- Ecore_Job* jobResult = NULL;
char* operation;
- ret = service_get_operation(service, &operation);
- if (ret != SERVICE_ERROR_NONE) {
+ if (service_get_operation(service, &operation) != SERVICE_ERROR_NONE) {
LogD("no operation");
return false;
}
if (OPERATION_UPDATE_BOX == operation) {
- BoxInfoPtr info = handleOperationUpdate(service);
- if (info) {
+ if (handleOperationUpdate(service)) {
JobInfo* jobInfo = new JobInfo(REQUEST_CMD_UPDATE_BOX, info, this);
- jobResult = ecore_job_add(requestBoxJobCallback, jobInfo);
- if (jobResult) {
+ if (ecore_job_add(requestBoxJobCallback, jobInfo)) {
result = true;
}
}