vhdx: Don't use error_setg_errno() with constant errno
authorKevin Wolf <kwolf@redhat.com>
Tue, 20 Mar 2018 17:11:09 +0000 (18:11 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 26 Mar 2018 10:17:43 +0000 (12:17 +0200)
commit0fcc38e7d0fb102ab9e9a9734459bdff89d3121f
treeffaa2f2e2d0aa256838535b321b0fcbe3c59066d
parentb412f49407e81dd6cdd9aaf5310895e579ed21d6
vhdx: Don't use error_setg_errno() with constant errno

error_setg_errno() is meant for cases where we got an errno from the OS
that can add useful extra information to an error message. It's
pointless if we pass a constant errno, these cases should use plain
error_setg().

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Jeff Cody <jcody@redhat.com>
block/vhdx.c