From 5a8bfff7a485f9933981c54ab1e8867b095ef84f Mon Sep 17 00:00:00 2001 From: Shuo A Liu Date: Tue, 7 Apr 2020 11:51:51 +0800 Subject: [PATCH] dm: return value 0 of vm_create_ioreq_client is valid Negative return value of vm_create_ioreq_client is invalid. 0 is valid. Tracked-On: #6282 Signed-off-by: Shuo A Liu Acked-by: Wang, Yu1 --- devicemodel/core/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devicemodel/core/main.c b/devicemodel/core/main.c index 280a61420..cac32ab97 100644 --- a/devicemodel/core/main.c +++ b/devicemodel/core/main.c @@ -686,7 +686,7 @@ vm_loop(struct vmctx *ctx) int error; ctx->ioreq_client = vm_create_ioreq_client(ctx); - if (ctx->ioreq_client <= 0) { + if (ctx->ioreq_client < 0) { pr_err("%s, failed to create IOREQ.\n", __func__); return; }