diff options
author | Denis V. Lunev <den@openvz.org> | 2015-01-30 11:42:11 +0300 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2015-02-06 17:24:20 +0100 |
commit | 1486df0e312613c6f235ee08488c90cc6b987094 (patch) | |
tree | a31a70688db83652fea802cbc94651d10c15cc02 /default-configs/aarch64-linux-user.mak | |
parent | a71754e5b03fd3b8b8c6d3bc2a39f75bead729de (diff) | |
download | qemu-1486df0e312613c6f235ee08488c90cc6b987094.zip qemu-1486df0e312613c6f235ee08488c90cc6b987094.tar.gz qemu-1486df0e312613c6f235ee08488c90cc6b987094.tar.bz2 |
block/raw-posix: create translate_err helper to merge errno values
actually the code
if (ret == -ENODEV || ret == -ENOSYS || ret == -EOPNOTSUPP ||
ret == -ENOTTY) {
ret = -ENOTSUP;
}
is present twice and will be added a couple more times. Create helper
for this.
CC: Kevin Wolf <kwolf@redhat.com>
CC: Stefan Hajnoczi <stefanha@redhat.com>
CC: Peter Lieven <pl@kamp.de>
CC: Fam Zheng <famz@redhat.com>
Signed-off-by: Denis V. Lunev <den@openvz.org>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Peter Lieven <pl@kamp.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'default-configs/aarch64-linux-user.mak')
0 files changed, 0 insertions, 0 deletions