]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/bridge: ti-sn65dsi86: remove redundant null check
authorXu Wang <vulab@iscas.ac.cn>
Wed, 30 Sep 2020 08:18:59 +0000 (08:18 +0000)
committerSam Ravnborg <sam@ravnborg.org>
Fri, 16 Oct 2020 19:04:00 +0000 (21:04 +0200)
Because clk_disable_unprepare already checked NULL clock parameter,
so the additional checks are unnecessary, just remove it

Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200930081859.52431-1-vulab@iscas.ac.cn
drivers/gpu/drm/bridge/ti-sn65dsi86.c

index c9ab9d82969407c41f10d6eef98ff5706ed8ab48..6ca1debd0f88d7b3946a184f0a0fb6d0b41ea5d2 100644 (file)
@@ -834,8 +834,7 @@ static void ti_sn_bridge_post_disable(struct drm_bridge *bridge)
 {
        struct ti_sn_bridge *pdata = bridge_to_ti_sn_bridge(bridge);
 
-       if (pdata->refclk)
-               clk_disable_unprepare(pdata->refclk);
+       clk_disable_unprepare(pdata->refclk);
 
        pm_runtime_put_sync(pdata->dev);
 }