Skip to contentSkip to conversation

drm/accel: remove unnecessary cast in accel_name_info()

PATCH New Onat Baker 1 participant 1 message Mar 23 DRM compute accelerators drivers and framework

lore
Share & tools
lore

Onat Baker

author
#0 lore raw

PATCH 1/1 drm/accel: remove unnecessary cast in accel_name_info()

m->private is a void pointer and does not need to be cast to struct drm_info_node * in C. Remove the unnecessary cast.

---
 drivers/accel/drm_accel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/accel/drm_accel.c +1 -1
index ca3357acd127..8cb359df13cf 100644
@@ -46,7 +46,7 @@ static void accel_sysfs_destroy(void)
 
 static int accel_name_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_master *master;
Signature · 1 line
2.47.3