summaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2017-12-15 09:13:28 -0700
committerJens Axboe <axboe@kernel.dk>2017-12-15 09:13:28 -0700
commit4784476426793575eb58c0fc245176b1f96208ce (patch)
tree298309b7a5d1db64294e3f22845fd7ef94a54926 /parse.c
parent3e262e2fc8e73bae1340aef23a78195b5de82387 (diff)
downloadfio-4784476426793575eb58c0fc245176b1f96208ce.tar.gz
fio-4784476426793575eb58c0fc245176b1f96208ce.tar.bz2
parse: don't check for < 0 on an unsigned type
We do strict errors on some builds, this breaks them. Remove the <= 0 check, just check for a value that's too large. Fixes: c26438ad ("parse: dump option type when using --debug=parse") Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.c b/parse.c
index a9486de9..a9ee1cee 100644
--- a/parse.c
+++ b/parse.c
@@ -491,7 +491,7 @@ static const char *opt_type_name(struct fio_option *o)
compiletime_assert(ARRAY_SIZE(opt_type_names) - 1 == FIO_OPT_UNSUPPORTED,
"opt_type_names[] index");
- if (o->type >= 0 && o->type <= FIO_OPT_UNSUPPORTED)
+ if (o->type <= FIO_OPT_UNSUPPORTED)
return opt_type_names[o->type];
return "OPT_UNKNOWN?";