aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLuca Ceresoli <luca.ceresoli@bootlin.com>2025-02-14 13:57:41 +0100
committerRobert Foss <rfoss@kernel.org>2025-02-17 14:17:55 +0100
commit9d60cf4e8cf7c480d2cbd03ebe971faa64c2b166 (patch)
treee935b86de3617b5951c578f35c35fd308449889c
parentdrm/debugfs: fix printk format for bridge index (diff)
downloadwireguard-linux-9d60cf4e8cf7c480d2cbd03ebe971faa64c2b166.tar.xz
wireguard-linux-9d60cf4e8cf7c480d2cbd03ebe971faa64c2b166.zip
drm: of: drm_of_find_panel_or_bridge: move misplaced comment
This comment is misleading as it refers to one of the inner if() branches only, not the whole outer if(). Move it to the branch it refers to. Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Robert Foss <rfoss@kernel.org> Link: https://patchwork.freedesktop.org/patch/msgid/20250214-drm-assorted-cleanups-v7-2-88ca5827d7af@bootlin.com
-rw-r--r--drivers/gpu/drm/drm_of.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_of.c b/drivers/gpu/drm/drm_of.c
index 5530919e0ba0..d0183dea7703 100644
--- a/drivers/gpu/drm/drm_of.c
+++ b/drivers/gpu/drm/drm_of.c
@@ -268,9 +268,9 @@ int drm_of_find_panel_or_bridge(const struct device_node *np,
*panel = NULL;
}
- /* No panel found yet, check for a bridge next. */
if (bridge) {
if (ret) {
+ /* No panel found yet, check for a bridge next. */
*bridge = of_drm_find_bridge(remote);
if (*bridge)
ret = 0;