Commit dd29bd41 authored by Tian Tao's avatar Tian Tao Committed by Rob Clark
Browse files

drm/msm: Remove redundant null check



clk_prepare_enable() and clk_disable_unprepare() will check
NULL clock parameter, so It is not necessary to add additional checks.

Signed-off-by: default avatarTian Tao <tiantao6@hisilicon.com>
Reviewed-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: default avatarRob Clark <robdclark@chromium.org>
parent e92ce317
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -177,14 +177,11 @@ static int disable_clk(struct msm_gpu *gpu)

static int enable_axi(struct msm_gpu *gpu)
{
	if (gpu->ebi1_clk)
		clk_prepare_enable(gpu->ebi1_clk);
	return 0;
	return clk_prepare_enable(gpu->ebi1_clk);
}

static int disable_axi(struct msm_gpu *gpu)
{
	if (gpu->ebi1_clk)
	clk_disable_unprepare(gpu->ebi1_clk);
	return 0;
}