mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-01-06 06:27:41 -07: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
1 changed files with 0 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue