Patchwork [11/14] drm/bridge: ti-tfp410: clean up drm_bridge_add call

login
register
mail settings
Submitter Inki Dae
Date July 3, 2017, 8:42 a.m.
Message ID <1499071350-25168-12-git-send-email-inki.dae@samsung.com>
Download mbox | patch
Permalink /patch/9822233/
State New
Headers show

Comments

Inki Dae - July 3, 2017, 8:42 a.m.
This patch removes unnecessary checking of return value.

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

Patch

diff --git a/drivers/gpu/drm/bridge/ti-tfp410.c b/drivers/gpu/drm/bridge/ti-tfp410.c
index eee4efd..7ea2a15 100644
--- a/drivers/gpu/drm/bridge/ti-tfp410.c
+++ b/drivers/gpu/drm/bridge/ti-tfp410.c
@@ -237,11 +237,7 @@  static int tfp410_init(struct device *dev)
 		}
 	}
 
-	ret = drm_bridge_add(&dvi->bridge);
-	if (ret) {
-		dev_err(dev, "drm_bridge_add() failed: %d\n", ret);
-		goto fail;
-	}
+	drm_bridge_add(&dvi->bridge);
 
 	return 0;
 fail: