drm: kirin: Remove unreachable return
authorJohn Stultz <john.stultz@linaro.org>
Tue, 20 Aug 2019 23:06:04 +0000 (23:06 +0000)
committerSam Ravnborg <sam@ravnborg.org>
Wed, 21 Aug 2019 17:15:33 +0000 (19:15 +0200)
The 'return 0' in kirin_drm_platform_probe() is unreachable
code, so remove it.

Cc: Rongrong Zou <zourongrong@gmail.com>
Cc: Xinliang Liu <z.liuxinliang@hisilicon.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: dri-devel <dri-devel@lists.freedesktop.org>
Cc: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Xinliang Liu <z.liuxinliang@hisilicon.com>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Suggested by: Xu YiPing <xuyiping@hisilicon.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190820230626.23253-4-john.stultz@linaro.org
drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c

index 204c94c01e3d588acf641fbcacb00ed4af9eca09..fcdd6b1e167df1697ecafaaa8e17413cf0fd3dce 100644 (file)
@@ -208,8 +208,6 @@ static int kirin_drm_platform_probe(struct platform_device *pdev)
        of_node_put(remote);
 
        return component_master_add_with_match(dev, &kirin_drm_ops, match);
-
-       return 0;
 }
 
 static int kirin_drm_platform_remove(struct platform_device *pdev)