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: Dr. David Alan Gilbert <dgilbert@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
This commit is contained in:
parent
95a7788b2f
commit
5df5416e63
@ -1345,7 +1345,7 @@ static void *source_return_path_thread(void *opaque)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (rp && qemu_file_get_error(rp)) {
|
if (qemu_file_get_error(rp)) {
|
||||||
trace_source_return_path_thread_bad_end();
|
trace_source_return_path_thread_bad_end();
|
||||||
mark_source_rp_bad(ms);
|
mark_source_rp_bad(ms);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user