[30/39] drm/amd/dal: fix bug in dal_display_clock_get_min_clocks_state

Submitted by Harry Wentland on Nov. 24, 2016, 2:02 a.m.

Details

Message ID 20161124020308.28124-31-harry.wentland@amd.com
State New
Headers show
Series "dal patches for nov 23, 2016" ( rev: 1 ) in AMD X.Org drivers

Commit Message

Harry Wentland Nov. 24, 2016, 2:02 a.m.
From: Alex Deucher <alexander.deucher@amd.com>

Missing return.

Change-Id: Idf77b5a73c89ec86a9b7ef5d231acac6bf58a4c7
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
---
 drivers/gpu/drm/amd/dal/dc/gpu/display_clock.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/drivers/gpu/drm/amd/dal/dc/gpu/display_clock.c b/drivers/gpu/drm/amd/dal/dc/gpu/display_clock.c
index 4929cd2aa3da..bcc0a5132600 100644
--- a/drivers/gpu/drm/amd/dal/dc/gpu/display_clock.c
+++ b/drivers/gpu/drm/amd/dal/dc/gpu/display_clock.c
@@ -118,7 +118,7 @@  bool dal_display_clock_get_min_clocks_state(
 	enum clocks_state *clocks_state)
 {
 	if (!disp_clk->funcs->get_min_clocks_state)
-		false;
+		return false;
 
 	*clocks_state = disp_clk->funcs->get_min_clocks_state(disp_clk);
 	return true;