From: Damien Lespiau Date: Thu, 10 Jul 2014 13:52:43 +0000 (+0100) Subject: drm/i915: Don't cast a pointer to void* unnecessarily X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=755f68f4f32fc690957cfc94a19fff3139958299;p=linux-beck.git drm/i915: Don't cast a pointer to void* unnecessarily C is super happy to asign anything pointer to void *. Don't pretend otherwise. Signed-off-by: Damien Lespiau Reviewed-by: Paulo Zanoni Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c index ce6918521699..2c0bad6ebce0 100644 --- a/drivers/gpu/drm/i915/i915_dma.c +++ b/drivers/gpu/drm/i915/i915_dma.c @@ -1596,7 +1596,7 @@ int i915_driver_load(struct drm_device *dev, unsigned long flags) if (dev_priv == NULL) return -ENOMEM; - dev->dev_private = (void *)dev_priv; + dev->dev_private = dev_priv; dev_priv->dev = dev; /* copy initial configuration to dev_priv->info */