diff --git a/qemu-img.c b/qemu-img.c index c98896b281a049472b9e21fa93e31e31ef8e558e..d4518e724f848a6ff8ffaf61656d080de5a08f03 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -246,7 +246,6 @@ static int read_password(char *buf, int buf_size) if (errno == EAGAIN || errno == EINTR) { continue; } else { - ret = -1; break; } } else if (ret == 0) {