提交 86ca2bf2 编写于 作者: D Dan Carpenter 提交者: Chris Wilson

drm/i915/selftests: remove a condition

We know that "err" is non-zero so there is no need to check.
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: NChris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20191213105050.y2v5nylsuxvc44jj@kili.mountain
上级 8c8a854d
......@@ -1086,8 +1086,7 @@ static int __live_parallel_engine1(void *arg)
rq = i915_request_create(engine->kernel_context);
if (IS_ERR(rq)) {
err = PTR_ERR(rq);
if (err)
break;
break;
}
i915_request_get(rq);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册