diff options
author | Inki Dae <inki.dae@samsung.com> | 2017-07-03 17:42:25 +0900 |
---|---|---|
committer | Archit Taneja <architt@codeaurora.org> | 2017-07-06 14:16:32 +0530 |
commit | b678682e846d91a105d2ca8a9bf3831ebd7c9d9b (patch) | |
tree | f617f7b03050613f5b8fb6929245c44811cfa1e0 /drivers/gpu | |
parent | d341a640db81cfe7a4a4e93a9fc79c66dd781834 (diff) | |
download | blackbird-obmc-linux-b678682e846d91a105d2ca8a9bf3831ebd7c9d9b.tar.gz blackbird-obmc-linux-b678682e846d91a105d2ca8a9bf3831ebd7c9d9b.zip |
drm/bridge: synopsys: dw-hdmi: 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-10-git-send-email-inki.dae@samsung.com
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c index ead11242c4b9..de1308b61390 100644 --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c @@ -2485,17 +2485,12 @@ int dw_hdmi_probe(struct platform_device *pdev, const struct dw_hdmi_plat_data *plat_data) { struct dw_hdmi *hdmi; - int ret; hdmi = __dw_hdmi_probe(pdev, plat_data); if (IS_ERR(hdmi)) return PTR_ERR(hdmi); - ret = drm_bridge_add(&hdmi->bridge); - if (ret < 0) { - __dw_hdmi_remove(hdmi); - return ret; - } + drm_bridge_add(&hdmi->bridge); return 0; } |