Style cleanup
authorJens Axboe <jens.axboe@oracle.com>
Thu, 15 Mar 2007 13:11:10 +0000 (14:11 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 15 Mar 2007 13:11:10 +0000 (14:11 +0100)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
filesetup.c

index a51abc3cb48f9865a336a67cb24106716310aba1..5584a3665475e87bc02074b8328f887db8787d2c 100644 (file)
@@ -311,11 +311,11 @@ int file_invalidate_cache(struct thread_data *td, struct fio_file *f)
         */
        if (f->mmap)
                ret = madvise(f->mmap, f->file_size, MADV_DONTNEED);
         */
        if (f->mmap)
                ret = madvise(f->mmap, f->file_size, MADV_DONTNEED);
-       else if (f->filetype == FIO_TYPE_FILE) {
+       else if (f->filetype == FIO_TYPE_FILE)
                ret = fadvise(f->fd, f->file_offset, f->file_size, POSIX_FADV_DONTNEED);
                ret = fadvise(f->fd, f->file_offset, f->file_size, POSIX_FADV_DONTNEED);
-       } else if (f->filetype == FIO_TYPE_BD) {
+       else if (f->filetype == FIO_TYPE_BD)
                ret = blockdev_invalidate_cache(f->fd);
                ret = blockdev_invalidate_cache(f->fd);
-       else if (f->filetype == FIO_TYPE_CHAR)
+       else if (f->filetype == FIO_TYPE_CHAR)
                ret = 0;
 
        if (ret < 0) {
                ret = 0;
 
        if (ret < 0) {