]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/i915/gt: remove redundant assignment to variable dw
authorColin Ian King <colin.king@canonical.com>
Sat, 22 Feb 2020 13:47:55 +0000 (13:47 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 22 Feb 2020 14:57:47 +0000 (14:57 +0000)
Variable dw is being initialized with a value that is never read,
it is assigned a new value later on. The assignment 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/20200222134755.134209-1-colin.king@canonical.com
drivers/gpu/drm/i915/gt/intel_engine_cs.c

index e46e55354e95e63dc49ad9117d939d03c848a45b..119c9cb24fd4f2a0f358f0fb4af557a30b7d7b45 100644 (file)
@@ -639,7 +639,7 @@ static int measure_breadcrumb_dw(struct intel_context *ce)
 {
        struct intel_engine_cs *engine = ce->engine;
        struct measure_breadcrumb *frame;
-       int dw = -ENOMEM;
+       int dw;
 
        GEM_BUG_ON(!engine->gt->scratch);