diff options
author | Xu Wang <vulab@iscas.ac.cn> | 2020-09-30 08:18:59 +0000 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2020-10-16 21:04:00 +0200 |
commit | 06dd6f303fe2e4d013bd2039283d837308fe99d9 (patch) | |
tree | e82f440c0332b4dc46e89e7418b92d0974e9aef1 /drivers/gpu/drm/bridge | |
parent | 137655d1ed353806b8591855b569efd090d84135 (diff) |
drm/bridge: ti-sn65dsi86: remove redundant null check
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
Diffstat (limited to 'drivers/gpu/drm/bridge')
-rw-r--r-- | drivers/gpu/drm/bridge/ti-sn65dsi86.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/bridge/ti-sn65dsi86.c b/drivers/gpu/drm/bridge/ti-sn65dsi86.c index c9ab9d829694..6ca1debd0f88 100644 --- a/drivers/gpu/drm/bridge/ti-sn65dsi86.c +++ b/drivers/gpu/drm/bridge/ti-sn65dsi86.c @@ -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); } |