From: Chen Gang Date: Thu, 3 Jul 2014 15:57:15 +0000 (+0800) Subject: qemu-img: Remove redundancy "ret = -1" X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b847ae2d60ce05643a7fd02fcc6e3390ae97a1ee;p=qemu.git qemu-img: Remove redundancy "ret = -1" In this case, 'ret' is already '-1', so need not do it again. Signed-off-by: Chen Gang Signed-off-by: Michael Tokarev --- 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) {