summaryrefslogtreecommitdiff
path: root/oslib/linux-blkzoned.c
diff options
context:
space:
mode:
Diffstat (limited to 'oslib/linux-blkzoned.c')
-rw-r--r--oslib/linux-blkzoned.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/oslib/linux-blkzoned.c b/oslib/linux-blkzoned.c
index 6f89ec6f..4e441d29 100644
--- a/oslib/linux-blkzoned.c
+++ b/oslib/linux-blkzoned.c
@@ -140,10 +140,8 @@ int blkzoned_get_zoned_model(struct thread_data *td, struct fio_file *f,
{
char *model_str = NULL;
- if (f->filetype != FIO_TYPE_BLOCK) {
- *model = ZBD_IGNORE;
- return 0;
- }
+ if (f->filetype != FIO_TYPE_BLOCK)
+ return -EINVAL;
*model = ZBD_NONE;