summary refs log tree commit diff stats
path: root/python/qemu/console_socket.py
diff options
context:
space:
mode:
authorVivek Goyal <vgoyal@redhat.com>2021-05-18 17:35:33 -0400
committerDr. David Alan Gilbert <dgilbert@redhat.com>2021-05-26 18:39:32 +0100
commitb31ff389315f2745cecc0f42cca7f4383b1a2a0d (patch)
tree18597003218d7bf472e073b293b2888fdb0896d9 /python/qemu/console_socket.py
parent04c9f7e04ae102edf384613df98268d59ff8fb9b (diff)
downloadfocaccia-qemu-b31ff389315f2745cecc0f42cca7f4383b1a2a0d.tar.gz
focaccia-qemu-b31ff389315f2745cecc0f42cca7f4383b1a2a0d.zip
virtiofsd: Get rid of unreachable code in read
pvreadv() can return following.

- error
- 0 in case of EOF
- short read

We seem to handle all the cases already. We are retrying read in case
of short read. So another check for short read seems like dead code.
Get rid of it.

Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Connor Kuehl <ckuehl@redhat.com>
Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Message-Id: <20210518213538.693422-3-vgoyal@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'python/qemu/console_socket.py')
0 files changed, 0 insertions, 0 deletions