drm/i915: remove unused variable
Subsystems (2)
PATCH 1/1 drm/i915: remove unused variable
the following warning was produced,
drivers/gpu/drm/i915/i915_gem_context.c: In function ‘i915_switch_context’:drivers/gpu/drm/i915/i915_gem_context.c:454:6: warning: unused variable ‘ret’ [-Wunused-variable]
fix up by removing it
Signed-off-by Devendra Naga <[email protected]>
---
This warning occurs in current v3.5 with HEAD at 173f8654746c.
drivers/gpu/drm/i915/i915_gem_context.c | 1 - 1 file changed, 1 deletion(-)
drivers/gpu/drm/i915/i915_gem_context.c +0 -1
@@ -451,7 +451,6 @@ int i915_switch_context(struct intel_ring_buffer *ring,struct drm_i915_file_private *file_priv =NULL ;struct i915_hw_context *to;struct drm_i915_gem_object *from_obj = ring->last_context_obj; -int ret;if (dev_priv->hw_contexts_disabled)return 0 ;
Signature · 6 lines
1.7.9.5 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
Daniel Vetter
AppliedQuoted 8 lines · Devendra Naga
the following warning was produced,
drivers/gpu/drm/i915/i915_gem_context.c: In function ‘i915_switch_context’:drivers/gpu/drm/i915/i915_gem_context.c:454:6: warning: unused variable ‘ret’ [-Wunused-variable]fix up by removing it
Signed-off-by Devendra Naga <[email protected]>
Picked up for -fixes, thanks for the patch.
-Daniel
Signature · 7 lines
Daniel Vetter Mail: [email protected] Mobile: +41 (0)79 365 57 48 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel