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 <shuo.a.liu@intel.com>
Acked-by: Wang, Yu1 <yu1.wang@intel.com>
This commit is contained in:
Shuo A Liu 2020-04-07 11:51:51 +08:00 committed by wenlingz
parent 42989f753e
commit 5a8bfff7a4
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}