]> git.proxmox.com Git - mirror_qemu.git/commit
os-posix: remove confused errno
authorGonglei <arei.gonglei@huawei.com>
Fri, 26 Sep 2014 08:14:31 +0000 (16:14 +0800)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 26 Sep 2014 17:20:50 +0000 (21:20 +0400)
commit97699eff3afc9c0dda865882415f81584b926727
tree5b14274717a360e0d10fc1bfd52b25859d5f16e4
parent63ce8e150c2c3178c56b3969ec16ec702ced7abd
os-posix: remove confused errno

If we get inside the 'else if (status == 1)' conditional,
then we know that read() succeeded, and therefore errno is
unspecified. Printing strerror(errno) on a random value
is not helpful.

Cc: Eric Blake <eblake@redhat.com>
Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
os-posix.c