Skip to content

Commit

Permalink
drm/i915: remove redundant assignment to variable err
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Chris Wilson <[email protected]>
Signed-off-by: Chris Wilson <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
  • Loading branch information
Colin Ian King authored and ickle committed Apr 9, 2020
1 parent 53dd702 commit 538c329
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/i915/gem/selftests/i915_gem_object.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down

0 comments on commit 538c329

Please sign in to comment.