[04/11] drm/amd/dal/dc: fix bug in dal_display_clock_get_min_clocks_state

Submitted by Alex Deucher on Nov. 22, 2016, 4:57 p.m.

Details

Message ID 1479833848-14275-4-git-send-email-alexander.deucher@amd.com
State New
Headers show
Series "Series without cover letter" ( rev: 1 ) in AMD X.Org drivers

Not browsing as part of any series.

Commit Message

Alex Deucher Nov. 22, 2016, 4:57 p.m.
Missing return.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@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 4929cd2..bcc0a51 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;