]> www.infradead.org Git - users/hch/misc.git/commitdiff
drm/display: bridge-connector: remove unused variable assignment
authorLuca Ceresoli <luca.ceresoli@bootlin.com>
Fri, 8 Aug 2025 14:49:09 +0000 (16:49 +0200)
committerLuca Ceresoli <luca.ceresoli@bootlin.com>
Fri, 5 Sep 2025 13:42:21 +0000 (15:42 +0200)
The 'bridge' pointer started being assigned and used within this 'if' scope
in commit 0beba3f9d366 ("drm/bridge: connector: add support for HDMI codec
framework").

After that, commit 5d04b4188959 ("drm/bridge: split HDMI Audio from
DRM_BRIDGE_OP_HDMI") removed the code dereferencing it from the same 'if'
scope, but did not remove the assignment.

Reviewed-by: Maxime Ripard <mripard@kernel.org>
Link: https://lore.kernel.org/r/20250808-drm-bridge-alloc-getput-for_each_bridge-v2-2-edb6ee81edf1@bootlin.com
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
drivers/gpu/drm/display/drm_bridge_connector.c

index 54f3f16d64c7b76f959e466a9ad84697324aec1d..baacd21e7341fca95ef3e5b793930ffde9d4d4e3 100644 (file)
@@ -776,8 +776,6 @@ struct drm_connector *drm_bridge_connector_init(struct drm_device *drm,
                if (!connector->ycbcr_420_allowed)
                        supported_formats &= ~BIT(HDMI_COLORSPACE_YUV420);
 
-               bridge = bridge_connector->bridge_hdmi;
-
                ret = drmm_connector_hdmi_init(drm, connector,
                                               bridge_connector->bridge_hdmi->vendor,
                                               bridge_connector->bridge_hdmi->product,