Commit 3a45d25d authored by Inki Dae's avatar Inki Dae Committed by Archit Taneja

drm/bridge: panel: clean up drm_bridge_add call

This patch removes unnecessary checking of return value.
Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
Signed-off-by: default avatarArchit Taneja <architt@codeaurora.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1499071350-25168-7-git-send-email-inki.dae@samsung.com
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment