]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/mdp4: Remove redundant null check before clk_prepare_enable/clk_disable_unprepare
authorXu Wang <vulab@iscas.ac.cn>
Thu, 31 Dec 2020 09:41:55 +0000 (09:41 +0000)
committerRob Clark <robdclark@chromium.org>
Fri, 15 Oct 2021 20:26:33 +0000 (13:26 -0700)
commitd2a7107d3a8ef4d7e62c85db50bebf032fe5a3b6
treecc112b4ee05e19f0dd5ed16bc5e0be90c1a32439
parentc9ef97b694b9bf1bfd8869c8b78de840785e5934
drm/msm/mdp4: Remove redundant null check before clk_prepare_enable/clk_disable_unprepare

Because clk_prepare_enable() and clk_disable_unprepare() already checked
NULL clock parameter, so the additional checks are unnecessary, just
remove them.

Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20201231094155.25481-1-vulab@iscas.ac.cn
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c