summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-10-08 09:26:35 -0600
committerJens Axboe <axboe@kernel.dk>2019-10-08 09:26:35 -0600
commit5f421b51679738e0d05049d84489282c5b3efe2e (patch)
treedf89efbc462a139fb29da0ec401e2c0fa1ceee62
parentd44f7805b5fc0cf1d48b973ffb0cb31fd51d05fc (diff)
downloadliburing-5f421b51679738e0d05049d84489282c5b3efe2e.tar.gz
liburing-5f421b51679738e0d05049d84489282c5b3efe2e.tar.bz2
test/cq-size: use 'ret', not 'errno' directly
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--test/cq-size.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/cq-size.c b/test/cq-size.c
index 6e4fa9c..9b55322 100644
--- a/test/cq-size.c
+++ b/test/cq-size.c
@@ -22,7 +22,7 @@ int main(int argc, char *argv[])
ret = io_uring_queue_init_params(4, &ring, &p);
if (ret) {
- if (errno == EINVAL) {
+ if (ret == -EINVAL) {
printf("Skipped, not supported on this kernel\n");
goto done;
}