Commit 538c329f authored by Colin Ian King's avatar Colin Ian King Committed by Chris Wilson

drm/i915: remove redundant assignment to variable err

The variable err is being initialized with a value that is never read
and it is being updated later with a new value.  The initialization is
redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.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/20200409133107.415812-1-colin.king@canonical.com
parent 53dd7028
...@@ -14,7 +14,7 @@ static int igt_gem_object(void *arg) ...@@ -14,7 +14,7 @@ static int igt_gem_object(void *arg)
{ {
struct drm_i915_private *i915 = arg; struct drm_i915_private *i915 = arg;
struct drm_i915_gem_object *obj; struct drm_i915_gem_object *obj;
int err = -ENOMEM; int err;
/* Basic test to ensure we can create an object */ /* Basic test to ensure we can create an object */
......
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