Home
last modified time | relevance | path

Searched hist:"026 ac158" (Results 1 – 1 of 1) sorted by relevance

/qemu/block/
H A Dqcow2-cluster.c026ac158 Mon Jun 19 13:40:02 GMT 2017 Alberto Garcia <berto@igalia.com> qcow2: Remove unused Error variable in do_perform_cow()

We are using the return value of qcow2_encrypt_sectors() to detect
problems but we are throwing away the returned Error since we have no
way to report it to the user. Therefore we can simply get rid of the
local Error variable and pass NULL instead.

Alternatively we could try to figure out a way to pass the original
error instead of simply returning -EIO, but that would be more
invasive, so let's keep the current approach.

Signed-off-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>