From eaf9094475504effe1a798199a1a118299cf0f74 Mon Sep 17 00:00:00 2001 From: Harry Wentland Date: Tue, 6 Dec 2016 12:01:23 -0500 Subject: [PATCH] drm/amd/display: Fix warning in freesync module Signed-off-by: Harry Wentland Reviewed-by: Tony Cheng Acked-by: Harry Wentland Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/display/modules/freesync/freesync.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/amd/display/modules/freesync/freesync.c b/drivers/gpu/drm/amd/display/modules/freesync/freesync.c index eb912baa0169..8892e8bec7c3 100644 --- a/drivers/gpu/drm/amd/display/modules/freesync/freesync.c +++ b/drivers/gpu/drm/amd/display/modules/freesync/freesync.c @@ -746,6 +746,9 @@ void mod_freesync_update_state(struct mod_freesync *mod_freesync, freesync_program_required = true; } break; + case FREESYNC_STATE_NONE: + /* handle here to avoid warning */ + break; } } -- GitLab