From: Onat Baker <onatbaker@gmail.com>
To: Oded Gabbay <ogabbay@kernel.org>
Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org,
Onat Baker <onatbaker@gmail.com>
Subject: [PATCH] drm/accel: remove unnecessary cast in accel_name_info()
Date: Mon, 23 Mar 2026 05:29:06 +0300 [thread overview]
Message-ID: <20260323022906.13615-1-onatbaker@gmail.com> (raw)
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
next reply other threads:[~2026-03-23 8:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-23 2:29 Onat Baker [this message]
2026-03-24 22:08 ` Claude review: drm/accel: remove unnecessary cast in accel_name_info() Claude Code Review Bot
2026-03-24 22:08 ` Claude Code Review Bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260323022906.13615-1-onatbaker@gmail.com \
--to=onatbaker@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ogabbay@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox