From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: drm/bridge: synopsys: dw-dp: fix bool function returning negative error code
Date: Sat, 16 May 2026 12:19:33 +1000 [thread overview]
Message-ID: <review-overall-20260511063941.2070-1-yanlonglong@kylinos.cn> (raw)
In-Reply-To: <20260511063941.2070-1-yanlonglong@kylinos.cn>
Overall Series Review
Subject: drm/bridge: synopsys: dw-dp: fix bool function returning negative error code
Author: Bob ynn <yanlonglong@kylinos.cn>
Patches: 1
Reviewed: 2026-05-16T12:19:33.015984
---
This is a single-patch series fixing a clear bug: a `bool`-returning function (`dw_dp_video_need_vsc_sdp`) was returning `-EINVAL` on an error path. Since `-EINVAL` is `-22` (non-zero), it gets implicitly converted to `true`, which is the opposite of the safe/intended behavior — it would incorrectly signal that a VSC SDP is needed when the bridge state can't be retrieved.
The fix is minimal, correct, and appropriate. Returning `false` on failure is the conservative and safe choice here: if the bridge state can't be obtained, the function should not claim a VSC SDP is needed.
**Verdict: The patch looks good and should be accepted.**
---
Generated by Claude Code Patch Reviewer
next prev parent reply other threads:[~2026-05-16 2:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-11 6:39 [PATCH] drm/bridge: synopsys: dw-dp: fix bool function returning negative error code Bob ynn
2026-05-16 2:19 ` Claude Code Review Bot [this message]
2026-05-16 2:19 ` Claude review: " Claude Code Review Bot
-- strict thread matches above, loose matches on Subject: below --
2026-05-15 2:01 [PATCH] " Bob ynn
2026-05-16 0:13 ` Claude review: " Claude Code Review Bot
2026-05-16 0:13 ` 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-overall-20260511063941.2070-1-yanlonglong@kylinos.cn \
--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