summaryrefslogtreecommitdiff
path: root/io_u.c
diff options
context:
space:
mode:
authorBart Van Assche <bart.vanassche@wdc.com>2018-04-17 10:05:56 -0700
committerBart Van Assche <bart.vanassche@wdc.com>2018-04-18 13:25:30 -0700
commita80cb54b6df815c5121f84d5126e2550e5f259cc (patch)
tree53dda9bcc9d2c5198c4bb6b150c821952d9f0161 /io_u.c
parentcbb8289d43ef6c822bceefecf7cb2ce6f203cfb5 (diff)
downloadfio-a80cb54b6df815c5121f84d5126e2550e5f259cc.tar.gz
fio-a80cb54b6df815c5121f84d5126e2550e5f259cc.tar.bz2
Change return type of td_io_commit() into void
Since td_io_commit() always returns 0, change its return type from int into void. This patch does not change any functionality. Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Diffstat (limited to 'io_u.c')
-rw-r--r--io_u.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/io_u.c b/io_u.c
index 633f6175..5b4c0df0 100644
--- a/io_u.c
+++ b/io_u.c
@@ -610,11 +610,8 @@ int io_u_quiesce(struct thread_data *td)
* io's that have been actually submitted to an async engine,
* and cur_depth is meaningless for sync engines.
*/
- if (td->io_u_queued || td->cur_depth) {
- int fio_unused ret;
-
- ret = td_io_commit(td);
- }
+ if (td->io_u_queued || td->cur_depth)
+ td_io_commit(td);
while (td->io_u_in_flight) {
int ret;