public inbox for drm-ai-reviews@public-inbox.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH] drm/accel: remove unnecessary cast in accel_name_info()
@ 2026-03-23  2:29 Onat Baker
  2026-03-24 22:08 ` Claude review: " Claude Code Review Bot
  2026-03-24 22:08 ` Claude Code Review Bot
  0 siblings, 2 replies; 3+ messages 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] 3+ messages in thread

end of thread, other threads:[~2026-03-24 22:08 UTC | newest]

Thread overview: 3+ messages (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
2026-03-24 22:08 ` Claude review: " Claude Code Review Bot
2026-03-24 22:08 ` Claude Code Review Bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox