Use clear_error() instead of clearing the error manually

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/filesetup.c b/filesetup.c
index bf28b41..40a1663 100644
--- a/filesetup.c
+++ b/filesetup.c
@@ -276,10 +276,9 @@
 	unsigned int i;
 
 	for_each_file(td, f, i) {
-		if (td->io_ops->open_file(td, f)) {
-			td->error = 0;
-			memset(td->verror, 0, sizeof(td->verror));
-		} else
+		if (td->io_ops->open_file(td, f))
+			clear_error(td);
+		else
 			td->io_ops->close_file(td, f);
 	}
 }