mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
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
This commit is contained in:
parent
47e3427854
commit
830dcb4451
1 changed files with 1 additions and 5 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue