projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a85575
)
qed: remove unneeded variable assignment
author
Pavel Borzenkov
<pavel.borzenkov@gmail.com>
Tue, 18 Oct 2011 17:17:56 +0000
(21:17 +0400)
committer
Stefan Hajnoczi
<stefanha@linux.vnet.ibm.com>
Wed, 26 Oct 2011 12:36:35 +0000
(13:36 +0100)
'ret' is unconditionally overwitten by qed_read_l1_table_sync()
Spotted by Clang Analyzer
Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
block/qed.c
patch
|
blob
|
history
diff --git
a/block/qed.c
b/block/qed.c
index
7fab155
..
e6720db
100644
(file)
--- a/
block/qed.c
+++ b/
block/qed.c
@@
-388,7
+388,6
@@
static int bdrv_qed_open(BlockDriverState *bs, int flags)
if (ret < 0) {
return ret;
}
- ret = 0; /* ret should always be 0 or -errno */
qed_header_le_to_cpu(&le_header, &s->header);
if (s->header.magic != QED_MAGIC) {