diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2014-07-10 09:52:43 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-07-10 16:25:42 -0400 |
commit | 755f68f4f32fc690957cfc94a19fff3139958299 (patch) | |
tree | b73893c296389a98ac8b7b2408142a6df3b3176e | |
parent | 1f835a77ac6061f346da2ce3f2c377ab2b5693c3 (diff) |
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 <damien.lespiau@intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r-- | drivers/gpu/drm/i915/i915_dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
1596 | if (dev_priv == NULL) | 1596 | if (dev_priv == NULL) |
1597 | return -ENOMEM; | 1597 | return -ENOMEM; |
1598 | 1598 | ||
1599 | dev->dev_private = (void *)dev_priv; | 1599 | dev->dev_private = dev_priv; |
1600 | dev_priv->dev = dev; | 1600 | dev_priv->dev = dev; |
1601 | 1601 | ||
1602 | /* copy initial configuration to dev_priv->info */ | 1602 | /* copy initial configuration to dev_priv->info */ |