Explorar o código

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>
Chen Gang %!s(int64=11) %!d(string=hai) anos
pai
achega
b847ae2d60
Modificáronse 1 ficheiros con 0 adicións e 1 borrados
  1. 0 1
      qemu-img.c

+ 0 - 1
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) {