diff options
author | Inki Dae <inki.dae@samsung.com> | 2017-07-03 11:42:21 +0300 |
---|---|---|
committer | Archit Taneja <architt@codeaurora.org> | 2017-07-06 11:46:19 +0300 |
commit | 830dcb44511170ec9ffc91855464156ce13d63ab (patch) | |
tree | a1f17914cd30301e1cab08a49cfa62137933d1e0 /drivers/gpu/drm/bridge/nxp-ptn3460.c | |
parent | 47e34278549ca44f093bfcc427f4713a17b1a8c8 (diff) | |
download | linux-830dcb44511170ec9ffc91855464156ce13d63ab.tar.xz |
drm/bridge: nxp-ptn3460: 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-6-git-send-email-inki.dae@samsung.com
Diffstat (limited to 'drivers/gpu/drm/bridge/nxp-ptn3460.c')
-rw-r--r-- | drivers/gpu/drm/bridge/nxp-ptn3460.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/gpu/drm/bridge/nxp-ptn3460.c b/drivers/gpu/drm/bridge/nxp-ptn3460.c index 4f64e717e01b..f0b5d0fc8594 100644 --- a/drivers/gpu/drm/bridge/nxp-ptn3460.c +++ b/drivers/gpu/drm/bridge/nxp-ptn3460.c @@ -332,11 +332,7 @@ static int ptn3460_probe(struct i2c_client *client, ptn_bridge->bridge.funcs = &ptn3460_bridge_funcs; ptn_bridge->bridge.of_node = dev->of_node; - ret = drm_bridge_add(&ptn_bridge->bridge); - if (ret) { - DRM_ERROR("Failed to add bridge\n"); - return ret; - } + drm_bridge_add(&ptn_bridge->bridge); i2c_set_clientdata(client, ptn_bridge); |