[Intel-gfx] [PATCH 4/4] drm/i915/context: shut up compiler

Ben Widawsky ben at bwidawsk.net
Tue Jun 19 18:16:42 CEST 2012


On Tue, 19 Jun 2012 16:52:32 +0200
Daniel Vetter <daniel.vetter at ffwll.ch> wrote:

> It found some unused variables.
> 
> Signed-Off-by: Daniel Vetter <daniel.vetter at ffwll.ch>

I saw this recently as well. I know exactly when those variables stopped
being used too.
Reviewed-by: Ben Widawsky <ben at bwidawsk.net>



> ---
>  drivers/gpu/drm/i915/i915_gem_context.c |    2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/i915_gem_context.c b/drivers/gpu/drm/i915/i915_gem_context.c
> index 3d8ae6c..fe3f21f 100644
> --- a/drivers/gpu/drm/i915/i915_gem_context.c
> +++ b/drivers/gpu/drm/i915/i915_gem_context.c
> @@ -480,7 +480,6 @@ int i915_switch_context(struct intel_ring_buffer *ring,
>  int i915_gem_context_create_ioctl(struct drm_device *dev, void *data,
>  				  struct drm_file *file)
>  {
> -	struct drm_i915_private *dev_priv = dev->dev_private;
>  	struct drm_i915_gem_context_create *args = data;
>  	struct drm_i915_file_private *file_priv = file->driver_priv;
>  	struct i915_hw_context *ctx;
> @@ -507,7 +506,6 @@ int i915_gem_context_destroy_ioctl(struct drm_device *dev, void *data,
>  {
>  	struct drm_i915_gem_context_destroy *args = data;
>  	struct drm_i915_file_private *file_priv = file->driver_priv;
> -	struct drm_i915_private *dev_priv = dev->dev_private;
>  	struct i915_hw_context *ctx;
>  	int ret;
>  



-- 
Ben Widawsky, Intel Open Source Technology Center



More information about the Intel-gfx mailing list