mirror of
https://github.com/torvalds/linux.git
synced 2026-03-14 06:46:15 +01:00
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
This commit is contained in:
parent
72443c730b
commit
9d60cf4e8c
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue