summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/sti
diff options
context:
space:
mode:
authorInki Dae <inki.dae@samsung.com>2017-07-03 10:42:30 +0200
committerArchit Taneja <architt@codeaurora.org>2017-08-21 05:19:38 +0200
commit851394552779dbc85fffa8726dd2d09ad43313a8 (patch)
tree4fd4b41a9bb6550a1e9e7e80e9cd5018d5a3635f /drivers/gpu/drm/sti
parentdrm/mediatek: hdmi: clean up drm_bridge_add call (diff)
downloadlinux-851394552779dbc85fffa8726dd2d09ad43313a8.tar.xz
linux-851394552779dbc85fffa8726dd2d09ad43313a8.zip
drm/sti: sti_vdo: 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: https://patchwork.freedesktop.org/patch/msgid/1499071350-25168-15-git-send-email-inki.dae@samsung.com
Diffstat (limited to 'drivers/gpu/drm/sti')
-rw-r--r--drivers/gpu/drm/sti/sti_dvo.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/gpu/drm/sti/sti_dvo.c b/drivers/gpu/drm/sti/sti_dvo.c
index 852bf2293b05..83314aee65cb 100644
--- a/drivers/gpu/drm/sti/sti_dvo.c
+++ b/drivers/gpu/drm/sti/sti_dvo.c
@@ -463,11 +463,7 @@ static int sti_dvo_bind(struct device *dev, struct device *master, void *data)
bridge->driver_private = dvo;
bridge->funcs = &sti_dvo_bridge_funcs;
bridge->of_node = dvo->dev.of_node;
- err = drm_bridge_add(bridge);
- if (err) {
- DRM_ERROR("Failed to add bridge\n");
- return err;
- }
+ drm_bridge_add(bridge);
err = drm_bridge_attach(encoder, bridge, NULL);
if (err) {