engines/windowsaio: style
authorJens Axboe <axboe@kernel.dk>
Wed, 11 Oct 2017 14:25:10 +0000 (08:25 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 11 Oct 2017 14:25:10 +0000 (08:25 -0600)
Don't use braces for a single line block.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
engines/windowsaio.c

index 2b12ddd01f69c85258ee7739ff90ade6c038be91..a66b1df4ee1162e704d0360e5acba8de1c22bd27 100644 (file)
@@ -240,9 +240,8 @@ static int fio_windowsaio_open_file(struct thread_data *td, struct fio_file *f)
 
        /* If we're going to use direct I/O, Windows will try and invalidate
         * its cache at that point so there's no need to do it here */
 
        /* If we're going to use direct I/O, Windows will try and invalidate
         * its cache at that point so there's no need to do it here */
-       if (td->o.invalidate_cache && !td->o.odirect) {
+       if (td->o.invalidate_cache && !td->o.odirect)
                windowsaio_invalidate_cache(f);
                windowsaio_invalidate_cache(f);
-       }
 
        f->hFile = CreateFile(f->file_name, access, sharemode,
                NULL, openmode, flags, NULL);
 
        f->hFile = CreateFile(f->file_name, access, sharemode,
                NULL, openmode, flags, NULL);