From ea52cdd443840448c198fec48e5a9ea5f40564f0 Mon Sep 17 00:00:00 2001 From: Greg Kurz Date: Thu, 10 Oct 2019 11:36:05 +0200 Subject: fsdev: Add return value to fsdev_throttle_parse_opts() It is more convenient to use the return value of the function to notify errors, rather than to be tied up setting up the &local_err boilerplate. Signed-off-by: Greg Kurz --- fsdev/qemu-fsdev-throttle.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fsdev/qemu-fsdev-throttle.h') diff --git a/fsdev/qemu-fsdev-throttle.h b/fsdev/qemu-fsdev-throttle.h index c98e2feab5..a21aecddc7 100644 --- a/fsdev/qemu-fsdev-throttle.h +++ b/fsdev/qemu-fsdev-throttle.h @@ -26,7 +26,7 @@ typedef struct FsThrottle { CoQueue throttled_reqs[2]; } FsThrottle; -void fsdev_throttle_parse_opts(QemuOpts *, FsThrottle *, Error **); +int fsdev_throttle_parse_opts(QemuOpts *, FsThrottle *, Error **); void fsdev_throttle_init(FsThrottle *); -- cgit v1.2.3