backend: do_verify() cleanup
authorJens Axboe <axboe@fb.com>
Mon, 1 Aug 2016 19:46:17 +0000 (13:46 -0600)
committerJens Axboe <axboe@fb.com>
Mon, 1 Aug 2016 19:46:17 +0000 (13:46 -0600)
Signed-off-by: Jens Axboe <axboe@fb.com>
backend.c

index 8a71490e9a59424e6e243afc1f1eb8356443b3e2..c3ad8312de67f13d48e5e67ee9ae117945ba9a22 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -652,7 +652,7 @@ static void do_verify(struct thread_data *td, uint64_t verify_bytes)
                                break;
 
                        while ((io_u = get_io_u(td)) != NULL) {
-                               if (IS_ERR(io_u)) {
+                               if (IS_ERR_OR_NULL(io_u)) {
                                        io_u = NULL;
                                        ret = FIO_Q_BUSY;
                                        goto reap;