drivers/gpu/drm/nouveau/nouveau_debugfs.c: Remove unnecessary casts.

The struct seq_file 'private' member is a void *, the casts are not needed.

Signed-off-by: H Hartley Sweeten <[email protected]>
Cc: David Airlie <[email protected]>

---

diff --git a/drivers/gpu/drm/nouveau/nouveau_debugfs.c 
b/drivers/gpu/drm/nouveau/nouveau_debugfs.c
index d79db36..4971d8f 100644
--- a/drivers/gpu/drm/nouveau/nouveau_debugfs.c
+++ b/drivers/gpu/drm/nouveau/nouveau_debugfs.c
@@ -36,7 +36,7 @@
 static int
 nouveau_debugfs_channel_info(struct seq_file *m, void *data)
 {
-       struct drm_info_node *node = (struct drm_info_node *) m->private;
+       struct drm_info_node *node = m->private;
        struct nouveau_channel *chan = node->info_ent->data;
 
        seq_printf(m, "channel id    : %d\n", chan->id);
@@ -107,7 +107,7 @@ nouveau_debugfs_channel_fini(struct nouveau_channel *chan)
 static int
 nouveau_debugfs_chipset_info(struct seq_file *m, void *data)
 {
-       struct drm_info_node *node = (struct drm_info_node *) m->private;
+       struct drm_info_node *node = m->private;
        struct drm_minor *minor = node->minor;
        struct drm_device *dev = minor->dev;
        struct drm_nouveau_private *dev_priv = dev->dev_private;
@@ -124,7 +124,7 @@ nouveau_debugfs_chipset_info(struct seq_file *m, void *data)
 static int
 nouveau_debugfs_memory_info(struct seq_file *m, void *data)
 {
-       struct drm_info_node *node = (struct drm_info_node *) m->private;
+       struct drm_info_node *node = m->private;
        struct drm_minor *minor = node->minor;
        struct drm_device *dev = minor->dev;
 

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to