]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/i915: remove redundant assignment to variable err
authorColin Ian King <colin.king@canonical.com>
Thu, 9 Apr 2020 13:31:07 +0000 (14:31 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 9 Apr 2020 19:19:31 +0000 (20:19 +0100)
commit538c329f7f3efeac3e6dc116da1a0465bd56d980
treecb5c4f82bc8ec4b006ab586740c34e4bdd51ec40
parent53dd7028dc3901d9c16c9f3b68037263924e958a
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
drivers/gpu/drm/i915/gem/selftests/i915_gem_object.c