drm/armada: Remove redundant null check before clk_disable_unprepare
Subsystems (2)
PATCH 1/1 drm/armada: Remove redundant null check before clk_disable_unprepare
Because clk_disable_unprepare() already checked NULL clock parameter, so the additional check is unnecessary, just remove it.
Signed-off-by Xu Wang <[email protected]>
--- drivers/gpu/drm/armada/armada_510.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/gpu/drm/armada/armada_510.c +2 -4
@@ -132,10 +132,8 @@ static int armada510_crtc_compute_clock(struct armada_crtc *dcrtc,static void armada510_crtc_disable (struct armada_crtc *dcrtc) { -if (dcrtc->clk) { -clk_disable_unprepare (dcrtc->clk); - dcrtc->clk =NULL ; - } +clk_disable_unprepare (dcrtc->clk); + dcrtc->clk =NULL ; } static void armada510_crtc_enable(struct armada_crtc *dcrtc,
Signature · 1 line
2.17.1