drm/drm-bridge.c: Drop conditionals around of_node pointers
Subsystems (3)
PATCH 1/1 drm/drm-bridge.c: Drop conditionals around of_node pointers
Having conditional around the of_node pointer of the drm_bridge structure is not necessary, since drm_bridge structure always has the of_node as its member.
Let's drop the conditional to get a better looks, please also note that this is following the already accepted commitments. see commit d8dfccde2709 ("drm/bridge: Drop conditionals around of_node pointers") for reference.
--- drivers/gpu/drm/drm_bridge.c | 5 ----- 1 file changed, 5 deletions(-)
drivers/gpu/drm/drm_bridge.c +0 -5
@@ -352,13 +352,8 @@ int drm_bridge_attach(struct drm_encoder *encoder, struct drm_bridge *bridge, bridge->encoder =NULL ;list_del (&bridge->chain_node); -#ifdef CONFIG_OF DRM_ERROR ("failed to attach bridge %pOF to encoder %s: %d\n" , bridge->of_node, encoder->name, ret); -#else -DRM_ERROR ("failed to attach bridge to encoder %s: %d\n" , - encoder->name, ret); -#endif return ret; }
Signature · 1 line
2.34.1
Quoted 9 lines · Sui Jingfeng
Having conditional around the
of_nodepointer of thedrm_bridgestructure is not necessary, sincedrm_bridgestructure always has theof_nodeas its member.Let's drop the conditional to get a better looks, please also note that this is following the already accepted commitments. see commit
d8dfccde2709("drm/bridge: Drop conditionals aroundof_nodepointers") for reference.Signed-off-by Sui Jingfeng <[email protected]>
It looks like this was forgotten in commit d8dfccde2709 ("drm/bridge:
Drop conditionals around of_node pointers").
Quoted 22 lines
--- drivers/gpu/drm/drm_bridge.c | 5 ----- 1 file changed, 5 deletions(-)drivers/gpu/drm/drm_bridge.c +0
-5@@ -352,13 +352,8 @@ int drm_bridge_attach(struct drm_encoder *encoder, struct drm_bridge *bridge, bridge->encoder =NULL ;list_del (&bridge->chain_node); -#ifdef CONFIG_OF DRM_ERROR ("failed to attach bridge %pOF to encoder %s: %d\n" , bridge->of_node, encoder->name, ret); -#else -DRM_ERROR ("failed to attach bridge to encoder %s: %d\n" , - encoder->name, ret); -#endif return ret; }
Signature · 3 lines
Regards, Laurent Pinchart
Quoted 9 lines · Sui Jingfeng
Having conditional around the
of_nodepointer of thedrm_bridgestructure is not necessary, sincedrm_bridgestructure always has theof_nodeas its member.Let's drop the conditional to get a better looks, please also note that this is following the already accepted commitments. see commit
d8dfccde2709("drm/bridge: Drop conditionals aroundof_nodepointers") for reference.[...]
Applied, thanks!
[1/1] drm/drm-bridge.c: Drop conditionals around of_node pointers
https://cgit.freedesktop.org/drm/drm-misc/commit/?id=ad3323a6ccb7
Rob