summaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorDmitry Fomichev <dmitry.fomichev@wdc.com>2020-05-26 06:32:54 +0900
committerJens Axboe <axboe@kernel.dk>2020-05-25 18:21:42 -0600
commit976fb54e16e008402ab2a08f1b661bd560906042 (patch)
treea2f3311afb7b6bff30be484b70ccddfa0683f217 /engines
parent891660e4292bcf85d966249bd12bb308ed61416c (diff)
downloadfio-976fb54e16e008402ab2a08f1b661bd560906042.tar.gz
fio-976fb54e16e008402ab2a08f1b661bd560906042.tar.bz2
libzbc: fix whitespace errors
Make checkpatch happy... no functional change. Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com> Signed-off-by: Dmitry Fomichev <dmitry.fomichev@wdc.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'engines')
-rw-r--r--engines/libzbc.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/engines/libzbc.c b/engines/libzbc.c
index 2f6b4583..9e568334 100644
--- a/engines/libzbc.c
+++ b/engines/libzbc.c
@@ -47,7 +47,7 @@ static int libzbc_open_dev(struct thread_data *td, struct fio_file *f,
struct libzbc_data **p_ld)
{
struct libzbc_data *ld = td->io_ops_data;
- int ret, flags = OS_O_DIRECT;
+ int ret, flags = OS_O_DIRECT;
if (ld) {
/* Already open */
@@ -61,7 +61,7 @@ static int libzbc_open_dev(struct thread_data *td, struct fio_file *f,
return -EINVAL;
}
- if (td_write(td)) {
+ if (td_write(td)) {
if (!read_only)
flags |= O_RDWR;
} else if (td_read(td)) {
@@ -71,17 +71,15 @@ static int libzbc_open_dev(struct thread_data *td, struct fio_file *f,
flags |= O_RDONLY;
} else if (td_trim(td)) {
td_verror(td, EINVAL, "libzbc does not support trim");
- log_err("%s: libzbc does not support trim\n",
- f->file_name);
- return -EINVAL;
+ log_err("%s: libzbc does not support trim\n", f->file_name);
+ return -EINVAL;
}
- if (td->o.oatomic) {
+ if (td->o.oatomic) {
td_verror(td, EINVAL, "libzbc does not support O_ATOMIC");
- log_err("%s: libzbc does not support O_ATOMIC\n",
- f->file_name);
- return -EINVAL;
- }
+ log_err("%s: libzbc does not support O_ATOMIC\n", f->file_name);
+ return -EINVAL;
+ }
ld = calloc(1, sizeof(*ld));
if (!ld)