diff options
author | ywan171 <yi.a.wang@intel.com> | 2013-01-30 13:54:05 +0800 |
---|---|---|
committer | Patrick Tjin <pattjin@google.com> | 2014-07-21 22:03:40 -0700 |
commit | f94dc0afb6e4af367787f758a77e510c0bfe6b8a (patch) | |
tree | 62b54d6fac5e6bf000010c1536fdcdcc74687a7d /utils/src | |
parent | e4801dc9e4a65e365b88d927f527caf08e2190f8 (diff) | |
download | wrs_omxil_core-f94dc0afb6e4af367787f758a77e510c0bfe6b8a.tar.gz |
wrs_core: fix Klocwork issue in queue.c
BZ: 83848
fix klocwork issue in queue.c
Signed-off-by: ywan171 <yi.a.wang@intel.com>
Change-Id: I57d75c2e3b3c33a03aa7a2c8d922ac0ce178ca4f
Reviewed-on: http://android.intel.com:8080/89313
Reviewed-by: Wang, Elaine <elaine.wang@intel.com>
Reviewed-by: Wang, Yi A <yi.a.wang@intel.com>
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Tested-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Diffstat (limited to 'utils/src')
-rw-r--r-- | utils/src/queue.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/src/queue.c b/utils/src/queue.c index 015fbf7..bbb246c 100644 --- a/utils/src/queue.c +++ b/utils/src/queue.c @@ -78,10 +78,10 @@ int queue_push_head(struct queue *queue, void *data) void __queue_push_tail(struct queue *queue, struct list *entry) { - if (!entry) { - return ; + queue->tail = list_add_tail(queue->tail, entry); + if (queue->tail == NULL) { + return; } - queue->tail = list_add_tail(queue->tail, entry); if (queue->tail->next) queue->tail = queue->tail->next; else |