drm/i915: Don't cast a pointer to void* unnecessarily
authorDamien Lespiau <damien.lespiau@intel.com>
Thu, 10 Jul 2014 13:52:43 +0000 (14:52 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 10 Jul 2014 20:25:42 +0000 (22:25 +0200)
C is super happy to asign anything pointer to void *. Don't pretend
otherwise.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_dma.c

index ce69185..2c0bad6 100644 (file)
@@ -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 */