提交 5df5416e 编写于 作者: D Dr. David Alan Gilbert 提交者: Juan Quintela

Unneeded NULL check

The check is unneccesary, we read the value at the start of the
thread, use it, and never change it.  The value is checked to be
non-NULL before thread creation.

Spotted by coverity, CID 1339211
Signed-off-by: NDr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: NJuan Quintela <quintela@redhat.com>
上级 95a7788b
......@@ -1345,7 +1345,7 @@ static void *source_return_path_thread(void *opaque)
break;
}
}
if (rp && qemu_file_get_error(rp)) {
if (qemu_file_get_error(rp)) {
trace_source_return_path_thread_bad_end();
mark_source_rp_bad(ms);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册