drm/exynos: mic: clean up drm_bridge_add call
authorInki Dae <inki.dae@samsung.com>
Mon, 3 Jul 2017 08:42:28 +0000 (17:42 +0900)
committerArchit Taneja <architt@codeaurora.org>
Mon, 21 Aug 2017 03:20:35 +0000 (08:50 +0530)
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: https://patchwork.freedesktop.org/patch/msgid/1499071350-25168-13-git-send-email-inki.dae@samsung.com
drivers/gpu/drm/exynos/exynos_drm_mic.c

index 16bbee897e0db9e7b3025f039a047e6580a59e3b..ab333d5b27275cf24dad7bd8e3328a63292153de 100644 (file)
@@ -456,11 +456,7 @@ static int exynos_mic_probe(struct platform_device *pdev)
        mic->bridge.funcs = &mic_bridge_funcs;
        mic->bridge.of_node = dev->of_node;
 
-       ret = drm_bridge_add(&mic->bridge);
-       if (ret) {
-               DRM_ERROR("mic: Failed to add MIC to the global bridge list\n");
-               return ret;
-       }
+       drm_bridge_add(&mic->bridge);
 
        pm_runtime_enable(dev);