* [PATCH] drm/accel: remove unnecessary cast in accel_name_info()
@ 2026-03-23 2:29 Onat Baker
0 siblings, 0 replies; only message in thread
From: Onat Baker @ 2026-03-23 2:29 UTC (permalink / raw)
To: Oded Gabbay; +Cc: dri-devel, linux-kernel, Onat Baker
m->private is a void pointer and does not need to be cast to
struct drm_info_node * in C. Remove the unnecessary cast.
Signed-off-by: Onat Baker <onatbaker@gmail.com>
---
drivers/accel/drm_accel.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/accel/drm_accel.c b/drivers/accel/drm_accel.c
index ca3357acd127..8cb359df13cf 100644
--- a/drivers/accel/drm_accel.c
+++ b/drivers/accel/drm_accel.c
@@ -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;
--
2.47.3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-03-23 8:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-23 2:29 [PATCH] drm/accel: remove unnecessary cast in accel_name_info() Onat Baker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox