On 2015-01-27 at 08:51, Denis V. Lunev wrote:
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.

Signed-off-by: Denis V. Lunev <d...@openvz.org>
CC: Kevin Wolf <kw...@redhat.com>
CC: Stefan Hajnoczi <stefa...@redhat.com>
CC: Peter Lieven <p...@kamp.de>
CC: Fam Zheng <f...@redhat.com>
---
  block/raw-posix.c | 19 +++++++++++++------
  1 file changed, 13 insertions(+), 6 deletions(-)

Reviewed-by: Max Reitz <mre...@redhat.com>

Reply via email to