“d8eddb15e4e436ec44464783687f0057a38fb013”上不存在“drivers/media/cec/core/cec-core.c”
提交 3a45d25d 编写于 作者: I Inki Dae 提交者: Archit Taneja

drm/bridge: panel: clean up drm_bridge_add call

This patch removes unnecessary checking of return value.
Signed-off-by: NInki Dae <inki.dae@samsung.com>
Signed-off-by: NArchit Taneja <architt@codeaurora.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1499071350-25168-7-git-send-email-inki.dae@samsung.com
上级 830dcb44
...@@ -158,7 +158,6 @@ struct drm_bridge *drm_panel_bridge_add(struct drm_panel *panel, ...@@ -158,7 +158,6 @@ struct drm_bridge *drm_panel_bridge_add(struct drm_panel *panel,
u32 connector_type) u32 connector_type)
{ {
struct panel_bridge *panel_bridge; struct panel_bridge *panel_bridge;
int ret;
if (!panel) if (!panel)
return ERR_PTR(EINVAL); return ERR_PTR(EINVAL);
...@@ -176,9 +175,7 @@ struct drm_bridge *drm_panel_bridge_add(struct drm_panel *panel, ...@@ -176,9 +175,7 @@ struct drm_bridge *drm_panel_bridge_add(struct drm_panel *panel,
panel_bridge->bridge.of_node = panel->dev->of_node; panel_bridge->bridge.of_node = panel->dev->of_node;
#endif #endif
ret = drm_bridge_add(&panel_bridge->bridge); drm_bridge_add(&panel_bridge->bridge);
if (ret)
return ERR_PTR(ret);
return &panel_bridge->bridge; return &panel_bridge->bridge;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册