On Thu, 2026-05-28 at 13:34 +0300, Ville Syrjala wrote: > From: Ville Syrjälä <[email protected]> > > Move 'bi_next' into the scope where it's actually used. > > Signed-off-by: Ville Syrjälä <[email protected]> > --- > drivers/gpu/drm/i915/display/intel_bw.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) >
Reviewed-by: Vinod Govindapillai <[email protected]> > diff --git a/drivers/gpu/drm/i915/display/intel_bw.c > b/drivers/gpu/drm/i915/display/intel_bw.c > index 4b5db4ca7773..940f23e7dd4e 100644 > --- a/drivers/gpu/drm/i915/display/intel_bw.c > +++ b/drivers/gpu/drm/i915/display/intel_bw.c > @@ -633,14 +633,13 @@ static int tgl_get_bw_info(struct intel_display > *display, > > for (i = 0; i < num_groups; i++) { > struct intel_bw_info *bi = &display->bw.max[i]; > - struct intel_bw_info *bi_next; > int clpchgroup; > int j; > > clpchgroup = (display_bw_params->deburst * > qi.deinterleave / num_channels) << i; > > if (i < num_groups - 1) { > - bi_next = &display->bw.max[i + 1]; > + struct intel_bw_info *bi_next = &display- > >bw.max[i + 1]; > > if (clpchgroup < clperchgroup) > bi_next->num_planes = (ipqdepth - > clpchgroup) / clpchgroup;
