commit | 9e6636c72d8d6f0605e23ed820c8487686882b12 | [log] [tgz] |
---|---|---|
author | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | Wed Apr 25 16:51:01 2012 +0100 |
committer | Luiz Capitulino <lcapitulino@redhat.com> | Fri Apr 27 11:44:50 2012 -0300 |
tree | bc01d69b62e17c29e100979172b3f10fd2d13bdf | |
parent | fd7f8c65377ee918479e43b38d44f54f13aa6548 [diff] |
block: use Error mechanism instead of -errno for block_job_set_speed() There are at least two different errors that can occur in block_job_set_speed(): the job might not support setting speeds or the value might be invalid. Use the Error mechanism to report the error where it occurs. Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Acked-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>