From: Harry Wentland Date: Tue, 6 Dec 2016 17:01:23 +0000 (-0500) Subject: drm/amd/display: Fix warning in freesync module X-Git-Tag: v5.15~9960^2~23^2~868 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eaf9094475504effe1a798199a1a118299cf0f74;p=platform%2Fkernel%2Flinux-starfive.git 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 --- diff --git a/drivers/gpu/drm/amd/display/modules/freesync/freesync.c b/drivers/gpu/drm/amd/display/modules/freesync/freesync.c index eb912ba..8892e8b 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; } }