diff options
author | Pavel Borzenkov <pavel.borzenkov@gmail.com> | 2011-10-18 21:17:56 +0400 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2011-10-26 13:36:35 +0100 |
commit | 512a2cf8e9c52ac72cace5572eed16f9003cd11c (patch) | |
tree | 18e9cce7c25e011524640f1a5ad73a48c869d722 /block | |
parent | feba23b14340965b9dad9251ec9a7a47313fbf69 (diff) |
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')
-rw-r--r-- | block/qed.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/block/qed.c b/block/qed.c index 7fab155b1a..e6720dbd6f 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) { |