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:
parent
42989f753e
commit
5a8bfff7a4
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue