[PATCH v2] drm: fixes when bridge mode_fixup is null.
Carlos Palminha
CARLOS.PALMINHA at synopsys.com
Wed Feb 10 11:21:16 UTC 2016
Avoid drivers to copy/past code to implement functions that will only return
true.
Changes v1->v2:
* Added Signed off by
Signed-off-by: Carlos Palminha <palminha at synopsys.com>
---
drivers/gpu/drm/drm_bridge.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/gpu/drm/drm_bridge.c b/drivers/gpu/drm/drm_bridge.c
index bd93453..4133e51 100644
--- a/drivers/gpu/drm/drm_bridge.c
+++ b/drivers/gpu/drm/drm_bridge.c
@@ -161,6 +161,8 @@ bool drm_bridge_mode_fixup(struct drm_bridge *bridge,
if (bridge->funcs->mode_fixup)
ret = bridge->funcs->mode_fixup(bridge, mode, adjusted_mode);
+ else
+ return true;
ret = ret && drm_bridge_mode_fixup(bridge->next, mode, adjusted_mode);
--
2.5.0
More information about the dri-devel
mailing list