diff options
author | Inki Dae <inki.dae@samsung.com> | 2017-07-03 17:42:22 +0900 |
---|---|---|
committer | Archit Taneja <architt@codeaurora.org> | 2017-07-06 14:16:24 +0530 |
commit | 3a45d25dcfc7cfd699707fc1a4f719a8d4f93442 (patch) | |
tree | 9a1a3bac7377e08c14d7966cba1c6826fcfa75b3 /drivers/gpu | |
parent | 830dcb44511170ec9ffc91855464156ce13d63ab (diff) | |
download | linux-3a45d25dcfc7cfd699707fc1a4f719a8d4f93442.tar.bz2 |
drm/bridge: panel: clean up drm_bridge_add call
This patch removes unnecessary checking of return value.
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1499071350-25168-7-git-send-email-inki.dae@samsung.com
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/bridge/panel.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/gpu/drm/bridge/panel.c b/drivers/gpu/drm/bridge/panel.c index 99f9a4beb859..65ab28cc2946 100644 --- a/drivers/gpu/drm/bridge/panel.c +++ b/drivers/gpu/drm/bridge/panel.c @@ -158,7 +158,6 @@ struct drm_bridge *drm_panel_bridge_add(struct drm_panel *panel, u32 connector_type) { struct panel_bridge *panel_bridge; - int ret; if (!panel) return ERR_PTR(EINVAL); @@ -176,9 +175,7 @@ struct drm_bridge *drm_panel_bridge_add(struct drm_panel *panel, panel_bridge->bridge.of_node = panel->dev->of_node; #endif - ret = drm_bridge_add(&panel_bridge->bridge); - if (ret) - return ERR_PTR(ret); + drm_bridge_add(&panel_bridge->bridge); return &panel_bridge->bridge; } |