qcow2: Remove unused Error variable in do_perform_cow()
commit026ac1586bdbd184e24082aa2bbab1fa3c48456b
authorAlberto Garcia <berto@igalia.com>
Mon, 19 Jun 2017 13:40:02 +0000 (19 16:40 +0300)
committerKevin Wolf <kwolf@redhat.com>
Mon, 26 Jun 2017 12:51:13 +0000 (26 14:51 +0200)
tree23c2b2258e9b1686d3080695d9022c08f43a0abd
parentb2b2b67a0057407e19cfa3fdd9002db21ced8b01
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>
block/qcow2-cluster.c