]> git.proxmox.com Git - mirror_qemu.git/commit
colo-compare: Remove superfluous NULL-pointer checks for s->iothread
authorLukas Straub <lukasstraub2@web.de>
Fri, 31 Jul 2020 05:06:04 +0000 (07:06 +0200)
committerJason Wang <jasowang@redhat.com>
Tue, 4 Aug 2020 06:14:48 +0000 (14:14 +0800)
commitf81cddfe8abe7d7e2220e611ee69d2cdf34eb789
tree96b1e7cfbe2289f4a623fda0a79702ba3008df93
parent5c1c3e4f02e458cf280c677c817ae4fd1ed9bf10
colo-compare: Remove superfluous NULL-pointer checks for s->iothread

s->iothread is checked for NULL on object creation in colo_compare_complete,
so it's guaranteed not to be NULL.
This resolves a false alert from Coverity (CID 1429969).

Signed-off-by: Lukas Straub <lukasstraub2@web.de>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Li Qiang <liq3ea@gmail.com>
Reviewed-by: Zhang Chen <chen.zhang@intel.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
net/colo-compare.c