From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: drm/virtio: Open-code drm_simple_encoder_init()
Date: Thu, 04 Jun 2026 15:05:00 +1000 [thread overview]
Message-ID: <review-patch3-20260531073532.8609-4-namanarora029@gmail.com> (raw)
In-Reply-To: <20260531073532.8609-4-namanarora029@gmail.com>
Patch Review
**Correctness: OK, with a pre-existing nit**
The transformation itself is correct. However, note that both the original and patched code ignore the return value:
```c
drm_encoder_init(dev, encoder, &virtio_gpu_drm_encoder_funcs,
DRM_MODE_ENCODER_VIRTUAL, NULL);
```
`drm_encoder_init()` returns `int`, and `vgdev_output_init()` checks errors from other init calls. The original `drm_simple_encoder_init()` also returned `int` and was similarly ignored. This is a **pre-existing issue**, not introduced by this patch, but could be mentioned as a follow-up cleanup opportunity.
Otherwise reviewed-by worthy.
---
Generated by Claude Code Patch Reviewer
next prev parent reply other threads:[~2026-06-04 5:05 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-31 7:35 [PATCH 0/6] drm: Open-code drm_simple_encoder_init() in several drivers Naman Arora
2026-05-31 7:35 ` [PATCH 1/6] drm/fsl-dcu: Open-code drm_simple_encoder_init() Naman Arora
2026-06-04 5:05 ` Claude review: " Claude Code Review Bot
2026-05-31 7:35 ` [PATCH 2/6] drm/tidss: " Naman Arora
2026-06-04 5:05 ` Claude review: " Claude Code Review Bot
2026-05-31 7:35 ` [PATCH 3/6] drm/virtio: " Naman Arora
2026-06-04 5:05 ` Claude Code Review Bot [this message]
2026-05-31 7:46 ` [PATCH 4/6] drm/meson: Open-code drm_simple_encoder_init() in encoder_cvbs Naman Arora
2026-05-31 7:46 ` [PATCH 5/6] drm/meson: Open-code drm_simple_encoder_init() in encoder_hdmi Naman Arora
2026-06-04 5:05 ` Claude review: " Claude Code Review Bot
2026-05-31 7:46 ` [PATCH 6/6] drm/meson: Open-code drm_simple_encoder_init() in encoder_dsi Naman Arora
2026-06-04 5:05 ` Claude review: " Claude Code Review Bot
2026-06-04 5:05 ` Claude review: drm/meson: Open-code drm_simple_encoder_init() in encoder_cvbs Claude Code Review Bot
2026-06-04 5:05 ` Claude review: drm: Open-code drm_simple_encoder_init() in several drivers 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=review-patch3-20260531073532.8609-4-namanarora029@gmail.com \
--to=claude-review@example.com \
--cc=dri-devel-reviews@example.com \
/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