throttle: Make throttle_is_valid() set errp
commit03ba36c83d136a9d039b56f0a834e65676b58c22
authorAlberto Garcia <berto@igalia.com>
Thu, 18 Feb 2016 10:26:57 +0000 (18 12:26 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 22 Feb 2016 13:08:04 +0000 (22 14:08 +0100)
treedcef5a35ed1db583b904acd54d1ffac234db5e6b
parent45b2d418e05e8b3cce9c8370ef6daac4b073b57a
throttle: Make throttle_is_valid() set errp

The caller does not need to set it, and this will allow us to refactor
this function later.

Signed-off-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
blockdev.c
include/qemu/throttle.h
tests/test-throttle.c
util/throttle.c