chardev-socket: remove useless if
commitff82fab792cba01f29a700e4c4ac660753961fbb
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 20 Mar 2018 15:18:43 +0000 (20 16:18 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 26 Mar 2018 12:37:14 +0000 (26 14:37 +0200)
tree3c6042c8ec7d95498ef66e0cd86926a30a9d2eda
parent87f963be66a32453e001d1052b000f1653605caa
chardev-socket: remove useless if

This trips Coverity, which believes the subsequent qio_channel_create_watch
can dereference a NULL pointer.  In reality, tcp_chr_connect's callers
all have s->ioc properly initialized, since they are all rooted at
tcp_chr_new_client.

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
chardev/char-socket.c