drm/amd/display: Fix warning in freesync module
authorHarry Wentland <harry.wentland@amd.com>
Tue, 6 Dec 2016 17:01:23 +0000 (12:01 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 21:04:25 +0000 (17:04 -0400)
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/modules/freesync/freesync.c

index eb912ba..8892e8b 100644 (file)
@@ -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;
                }
        }