aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChen Gang <gang.chen.5i5j@gmail.com>2014-07-03 23:57:15 +0800
committerMichael Tokarev <mjt@tls.msk.ru>2014-07-18 17:45:37 +0400
commitb847ae2d60ce05643a7fd02fcc6e3390ae97a1ee (patch)
tree5d1d1173ea925d1662654b71b2ff44d18c21dccd
parenta9dd38db68a280fd8e2ece16904a5bae52be1925 (diff)
qemu-img: Remove redundancy "ret = -1"
In this case, 'ret' is already '-1', so need not do it again. Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
-rw-r--r--qemu-img.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/qemu-img.c b/qemu-img.c
index c98896b281..d4518e724f 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) {