]> Git Repo - qemu.git/commit
qcow2: Remove unused Error variable in do_perform_cow()
authorAlberto Garcia <[email protected]>
Mon, 19 Jun 2017 13:40:02 +0000 (16:40 +0300)
committerKevin Wolf <[email protected]>
Mon, 26 Jun 2017 12:51:13 +0000 (14:51 +0200)
commit026ac1586bdbd184e24082aa2bbab1fa3c48456b
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 <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
Reviewed-by: Kevin Wolf <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
block/qcow2-cluster.c
This page took 0.023267 seconds and 4 git commands to generate.