projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f835a7
)
drm/i915: Don't cast a pointer to void* unnecessarily
author
Damien Lespiau
<damien.lespiau@intel.com>
Thu, 10 Jul 2014 13:52:43 +0000
(14:52 +0100)
committer
Daniel 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
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/i915_dma.c
b/drivers/gpu/drm/i915/i915_dma.c
index ce69185216992542957f3cec886f8a924c2f2883..2c0bad6ebce0ceef913f988c54db66afc4a77a63 100644
(file)
--- 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 */