Commit 86ca2bf2 authored by Dan Carpenter's avatar Dan Carpenter Committed by 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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20191213105050.y2v5nylsuxvc44jj@kili.mountain
parent 8c8a854d
...@@ -1086,8 +1086,7 @@ static int __live_parallel_engine1(void *arg) ...@@ -1086,8 +1086,7 @@ static int __live_parallel_engine1(void *arg)
rq = i915_request_create(engine->kernel_context); rq = i915_request_create(engine->kernel_context);
if (IS_ERR(rq)) { if (IS_ERR(rq)) {
err = PTR_ERR(rq); err = PTR_ERR(rq);
if (err) break;
break;
} }
i915_request_get(rq); i915_request_get(rq);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment