@@ -303,7 +303,7 @@ bool dc_stream_adjust_vmin_vmax(struct dc *dc,
303
303
struct dc_stream_state * stream ,
304
304
struct dc_crtc_timing_adjust * adjust )
305
305
{
306
- int i = 0 ;
306
+ int i ;
307
307
bool ret = false;
308
308
309
309
stream -> adjust .v_total_max = adjust -> v_total_max ;
@@ -331,7 +331,7 @@ bool dc_stream_get_crtc_position(struct dc *dc,
331
331
{
332
332
/* TODO: Support multiple streams */
333
333
const struct dc_stream_state * stream = streams [0 ];
334
- int i = 0 ;
334
+ int i ;
335
335
bool ret = false;
336
336
struct crtc_position position ;
337
337
@@ -538,7 +538,7 @@ void dc_stream_set_dyn_expansion(struct dc *dc, struct dc_stream_state *stream,
538
538
enum dc_dynamic_expansion option )
539
539
{
540
540
/* OPP FMT dyn expansion updates*/
541
- int i = 0 ;
541
+ int i ;
542
542
struct pipe_ctx * pipe_ctx ;
543
543
544
544
for (i = 0 ; i < MAX_PIPES ; i ++ ) {
@@ -596,7 +596,7 @@ void dc_stream_set_dither_option(struct dc_stream_state *stream,
596
596
597
597
bool dc_stream_set_gamut_remap (struct dc * dc , const struct dc_stream_state * stream )
598
598
{
599
- int i = 0 ;
599
+ int i ;
600
600
bool ret = false;
601
601
struct pipe_ctx * pipes ;
602
602
@@ -613,7 +613,7 @@ bool dc_stream_set_gamut_remap(struct dc *dc, const struct dc_stream_state *stre
613
613
614
614
bool dc_stream_program_csc_matrix (struct dc * dc , struct dc_stream_state * stream )
615
615
{
616
- int i = 0 ;
616
+ int i ;
617
617
bool ret = false;
618
618
struct pipe_ctx * pipes ;
619
619
@@ -639,8 +639,7 @@ void dc_stream_set_static_screen_params(struct dc *dc,
639
639
int num_streams ,
640
640
const struct dc_static_screen_params * params )
641
641
{
642
- int i = 0 ;
643
- int j = 0 ;
642
+ int i , j ;
644
643
struct pipe_ctx * pipes_affected [MAX_PIPES ];
645
644
int num_pipes_affected = 0 ;
646
645
@@ -895,7 +894,7 @@ static void disable_all_writeback_pipes_for_stream(
895
894
static void apply_ctx_interdependent_lock (struct dc * dc , struct dc_state * context ,
896
895
struct dc_stream_state * stream , bool lock )
897
896
{
898
- int i = 0 ;
897
+ int i ;
899
898
900
899
/* Checks if interdependent update function pointer is NULL or not, takes care of DCE110 case */
901
900
if (dc -> hwss .interdependent_update_lock )
@@ -1155,7 +1154,7 @@ static void enable_timing_multisync(
1155
1154
struct dc * dc ,
1156
1155
struct dc_state * ctx )
1157
1156
{
1158
- int i = 0 , multisync_count = 0 ;
1157
+ int i , multisync_count = 0 ;
1159
1158
int pipe_count = dc -> res_pool -> pipe_count ;
1160
1159
struct pipe_ctx * multisync_pipes [MAX_PIPES ] = { NULL };
1161
1160
0 commit comments