This patch resolves svace warnings "DEREF_OF_NULL", which means that can
have only NULL value. Even it is false positive, the condition is also
wrong because it should continue iteration if queue is not empty.
Change-Id: I445463c9ef4522e3e58923fbcbda01d0ce606dcc
Signed-off-by: Dongwoo <dwoo08.lee@samsung.com>
}
pthread_mutex_lock(&ctx->dfu_mutex);
- while (TAILQ_EMPTY(&ctx->dfu_ioq_head)) {
+ while (!TAILQ_EMPTY(&ctx->dfu_ioq_head)) {
frame = TAILQ_FIRST(&ctx->dfu_ioq_head);
TAILQ_REMOVE(&ctx->dfu_ioq_head, frame, entry);