diff options
author | Alberto Garcia <berto@igalia.com> | 2015-07-02 11:06:11 +0300 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2015-07-07 10:31:04 +0100 |
commit | 1bd84ee717bf146c19281cce48a36a2f4d71748d (patch) | |
tree | d3a5933f67d48fabac37ee54bdf4e2d248efcc9d /block/qcow2-cache.c | |
parent | f6e3035f75e5c6a73485335765ae070304c7a110 (diff) | |
download | qemu-1bd84ee717bf146c19281cce48a36a2f4d71748d.zip qemu-1bd84ee717bf146c19281cce48a36a2f4d71748d.tar.gz qemu-1bd84ee717bf146c19281cce48a36a2f4d71748d.tar.bz2 |
qcow2: remove unnecessary check
The value of 'i' is guaranteed to be >= 0
Signed-off-by: Alberto Garcia <berto@igalia.com>
Message-id: 1435824371-2660-1-git-send-email-berto@igalia.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'block/qcow2-cache.c')
-rw-r--r-- | block/qcow2-cache.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/block/qcow2-cache.c b/block/qcow2-cache.c index ed92a09..53b8afc 100644 --- a/block/qcow2-cache.c +++ b/block/qcow2-cache.c @@ -281,9 +281,6 @@ static int qcow2_cache_do_get(BlockDriverState *bs, Qcow2Cache *c, i = min_lru_index; trace_qcow2_cache_get_replace_entry(qemu_coroutine_self(), c == s->l2_table_cache, i); - if (i < 0) { - return i; - } ret = qcow2_cache_entry_flush(bs, c, i); if (ret < 0) { |