From: Sui Jingfeng Date: Tue, 7 May 2024 18:00:00 +0000 (+0800) Subject: drm/drm-bridge: Drop conditionals around of_node pointers X-Git-Tag: v6.11-rc1~141^2~24^2~193 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ad3323a6ccb7d43bbeeaa46d5311c43d5d361fc7;p=thirdparty%2Fkernel%2Flinux.git drm/drm-bridge: 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. Signed-off-by: Sui Jingfeng Reviewed-by: Laurent Pinchart Signed-off-by: Robert Foss Link: https://patchwork.freedesktop.org/patch/msgid/20240507180001.1358816-1-sui.jingfeng@linux.dev --- diff --git a/drivers/gpu/drm/drm_bridge.c b/drivers/gpu/drm/drm_bridge.c index 28abe9aa99ca5..584d109330ab1 100644 --- a/drivers/gpu/drm/drm_bridge.c +++ b/drivers/gpu/drm/drm_bridge.c @@ -353,13 +353,8 @@ err_reset_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; }