From: Luca Ceresoli Date: Fri, 14 Feb 2025 12:57:41 +0000 (+0100) Subject: drm: of: drm_of_find_panel_or_bridge: move misplaced comment X-Git-Tag: v6.15-rc1~120^2~19^2~38 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9d60cf4e8cf7c480d2cbd03ebe971faa64c2b166;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Luca Ceresoli Signed-off-by: Robert Foss Link: https://patchwork.freedesktop.org/patch/msgid/20250214-drm-assorted-cleanups-v7-2-88ca5827d7af@bootlin.com --- diff --git a/drivers/gpu/drm/drm_of.c b/drivers/gpu/drm/drm_of.c index 5530919e0ba05..d0183dea77030 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;