commit | 660a1cb5fb9843ec09a04337714e78d63cd557e7 | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Tue Apr 17 15:37:47 2007 +0200 |
committer | Jens Axboe <jens.axboe@oracle.com> | Tue Apr 17 15:37:47 2007 +0200 |
tree | a0e803a9f6132129ef786f3bda6a81a93f3889ac | |
parent | ef5fffa591e583de26c6ce14f9448104d6dfbe79 [diff] [blame] |
Reduntant write bit checks No point in checking for td_rw(td) || td_write(), since td_write() will also be true for td_rw(). Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/filesetup.c b/filesetup.c index 6ccd357..faeefaf 100644 --- a/filesetup.c +++ b/filesetup.c
@@ -222,7 +222,7 @@ if (td->o.sync_io) flags |= O_SYNC; - if (td_write(td) || td_rw(td)) { + if (td_write(td)) { flags |= O_RDWR; if (f->filetype == FIO_TYPE_FILE)