summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/gem/selftests
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-04-09 15:31:07 +0200
committerChris Wilson <chris@chris-wilson.co.uk>2020-04-09 21:19:31 +0200
commit538c329f7f3efeac3e6dc116da1a0465bd56d980 (patch)
treecb5c4f82bc8ec4b006ab586740c34e4bdd51ec40 /drivers/gpu/drm/i915/gem/selftests
parentdrm/i915/evict: watch out for unevictable nodes (diff)
downloadlinux-538c329f7f3efeac3e6dc116da1a0465bd56d980.tar.xz
linux-538c329f7f3efeac3e6dc116da1a0465bd56d980.zip
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: Colin Ian King <colin.king@canonical.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Link: https://patchwork.freedesktop.org/patch/msgid/20200409133107.415812-1-colin.king@canonical.com
Diffstat (limited to 'drivers/gpu/drm/i915/gem/selftests')
-rw-r--r--drivers/gpu/drm/i915/gem/selftests/i915_gem_object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/gem/selftests/i915_gem_object.c b/drivers/gpu/drm/i915/gem/selftests/i915_gem_object.c
index 2b6db6f799de..faa5b6d91795 100644
--- a/drivers/gpu/drm/i915/gem/selftests/i915_gem_object.c
+++ b/drivers/gpu/drm/i915/gem/selftests/i915_gem_object.c
@@ -14,7 +14,7 @@ static int igt_gem_object(void *arg)
{
struct drm_i915_private *i915 = arg;
struct drm_i915_gem_object *obj;
- int err = -ENOMEM;
+ int err;
/* Basic test to ensure we can create an object */