aboutsummaryrefslogtreecommitdiff
path: root/block/qed.c
diff options
context:
space:
mode:
authorPavel Borzenkov <pavel.borzenkov@gmail.com>2011-10-18 21:17:56 +0400
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2011-10-26 13:36:35 +0100
commit512a2cf8e9c52ac72cace5572eed16f9003cd11c (patch)
tree18e9cce7c25e011524640f1a5ad73a48c869d722 /block/qed.c
parentfeba23b14340965b9dad9251ec9a7a47313fbf69 (diff)
downloadqemu-512a2cf8e9c52ac72cace5572eed16f9003cd11c.zip
qemu-512a2cf8e9c52ac72cace5572eed16f9003cd11c.tar.gz
qemu-512a2cf8e9c52ac72cace5572eed16f9003cd11c.tar.bz2
qed: remove unneeded variable assignment
'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>
Diffstat (limited to 'block/qed.c')
-rw-r--r--block/qed.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/block/qed.c b/block/qed.c
index 7fab155..e6720db 100644
--- 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) {