projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9dd38d
)
qemu-img: Remove redundancy "ret = -1"
author
Chen Gang
<gang.chen.5i5j@gmail.com>
Thu, 3 Jul 2014 15:57:15 +0000
(23:57 +0800)
committer
Michael Tokarev
<mjt@tls.msk.ru>
Fri, 18 Jul 2014 13:45:37 +0000
(17:45 +0400)
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>
qemu-img.c
patch
|
blob
|
history
diff --git
a/qemu-img.c
b/qemu-img.c
index c98896b281a049472b9e21fa93e31e31ef8e558e..d4518e724f848a6ff8ffaf61656d080de5a08f03 100644
(file)
--- 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) {