mirror of
https://github.com/torvalds/linux.git
synced 2026-09-29 12:24:02 +02:00
drm/i915/bw: Move 'bi_next' to tighter scope
Move 'bi_next' into the scope where it's actually used. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patch.msgid.link/20260528103458.18069-5-ville.syrjala@linux.intel.com Reviewed-by: Vinod Govindapillai <vinod.govindapilai@intel.com>
This commit is contained in:
parent
8965d70181
commit
2421dec89d
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user