mirror of
https://github.com/torvalds/linux.git
synced 2026-06-05 13:06:59 +02:00
drm/i915/gt: remove redundant assignment to variable dw
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
This commit is contained in:
parent
6065682f99
commit
5d8b134150
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user