Applied. thanks! Alex
On Mon, Dec 2, 2019 at 10:47 AM Colin King <[email protected]> wrote: > > From: Colin Ian King <[email protected]> > > 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 <[email protected]> > --- > drivers/gpu/drm/amd/display/modules/freesync/freesync.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > 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 = > -- > 2.24.0 > > _______________________________________________ > dri-devel mailing list > [email protected] > https://lists.freedesktop.org/mailman/listinfo/dri-devel _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
