diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-12-02 15:47:38 +0000 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-12-02 17:55:08 -0500 |
commit | a501e22c8e36934b2d901b039b1c59c948886c90 (patch) | |
tree | ae473dc9f8c292deb3005d5f421fa10c27db3d48 /drivers/gpu/drm/amd/display/modules/freesync | |
parent | f7a8b4739d94f05d4bb84b62d43157dd1bc3bc32 (diff) | |
download | linux-stable-a501e22c8e36934b2d901b039b1c59c948886c90.tar.gz linux-stable-a501e22c8e36934b2d901b039b1c59c948886c90.tar.bz2 linux-stable-a501e22c8e36934b2d901b039b1c59c948886c90.zip |
drm/amd/display: remove redundant assignment to variable v_total
The variable v_total is being initialized with a value that is never
read and it is being updated later with a new value. The initialization
is redundant and can be removed.
Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/modules/freesync')
-rw-r--r-- | drivers/gpu/drm/amd/display/modules/freesync/freesync.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/modules/freesync/freesync.c b/drivers/gpu/drm/amd/display/modules/freesync/freesync.c index 16e69bbc69aa..fa57885503d4 100644 --- a/drivers/gpu/drm/amd/display/modules/freesync/freesync.c +++ b/drivers/gpu/drm/amd/display/modules/freesync/freesync.c @@ -122,7 +122,7 @@ static unsigned int calc_v_total_from_refresh( const struct dc_stream_state *stream, unsigned int refresh_in_uhz) { - unsigned int v_total = stream->timing.v_total; + unsigned int v_total; unsigned int frame_duration_in_ns; frame_duration_in_ns = |