projects
/
platform
/
core
/
iot
/
iotcon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f09e12
)
Assign after null check (_ocprocess_worker_thread())
accepted/tizen/mobile/20151216.111609
accepted/tizen/tv/20151216.111312
accepted/tizen/wearable/20151216.111455
submit/tizen/20151216.074048
author
youngman
<yman.jung@samsung.com>
Wed, 16 Dec 2015 06:19:03 +0000
(15:19 +0900)
committer
Youngjae Shin
<yj99.shin@samsung.com>
Wed, 16 Dec 2015 07:40:27 +0000
(16:40 +0900)
Change-Id: I099394000e559e6b15a9074043b1e5e825c1d293
Signed-off-by: youngman <yman.jung@samsung.com>
daemon/icd-ioty-ocprocess.c
patch
|
blob
|
history
diff --git
a/daemon/icd-ioty-ocprocess.c
b/daemon/icd-ioty-ocprocess.c
index
8ad8dfa
..
235bc1c
100644
(file)
--- a/
daemon/icd-ioty-ocprocess.c
+++ b/
daemon/icd-ioty-ocprocess.c
@@
-134,12
+134,11
@@
static void* _ocprocess_worker_thread(void *data)
{
int ret;
struct icd_ioty_worker *worker = data;
- struct icd_worker_context *ctx
= worker->ctx
;
+ struct icd_worker_context *ctx;
- if (NULL == data) {
- ERR("worker is NULL");
- return NULL;
- }
+ RETV_IF(NULL == worker, NULL);
+
+ ctx = worker->ctx;
g_mutex_lock(&ctx->icd_worker_mutex);
ret = worker->cb(worker->ctx);