drm/i915: Don't cast a pointer to void* unnecessarily
authorDamien Lespiau <[email protected]>
Thu, 10 Jul 2014 13:52:43 +0000 (14:52 +0100)
committerDaniel Vetter <[email protected]>
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 <[email protected]>
Reviewed-by: Paulo Zanoni <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
drivers/gpu/drm/i915/i915_dma.c

index ce69185216992542957f3cec886f8a924c2f2883..2c0bad6ebce0ceef913f988c54db66afc4a77a63 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 */