[PATCH 05/14] drm/bridge: nxp-ptn3460: clean up drm_bridge_add call

Inki Dae inki.dae at samsung.com
Mon Jul 3 08:42:21 UTC 2017


This patch removes unnecessary checking of return value.

Signed-off-by: Inki Dae <inki.dae at samsung.com>
---
 drivers/gpu/drm/bridge/nxp-ptn3460.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/drivers/gpu/drm/bridge/nxp-ptn3460.c b/drivers/gpu/drm/bridge/nxp-ptn3460.c
index 4f64e71..f0b5d0f 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);
 
-- 
1.9.1



More information about the dri-devel mailing list