mirror of
https://github.com/qemu/qemu.git
synced 2024-11-24 03:13:44 +08:00
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>
This commit is contained in:
parent
a9dd38db68
commit
b847ae2d60
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user