Skip to content

Commit 0dcc5c6

Browse files
committed
drm/i915/mst: remove crtc_state->pbn
The crtc_state->pbn member is only used as a temporary variable within mst_stream_find_vcpi_slots_for_bpp(). Remove it as unnecessary. Suggested-by: Imre Deak <[email protected]> Reviewed-by: Imre Deak <[email protected]> Signed-off-by: Jani Nikula <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/726aaadbd425057dfd854e42417bcf8d69b769d3.1735912293.git.jani.nikula@intel.com
1 parent 643b06e commit 0dcc5c6

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

drivers/gpu/drm/i915/display/intel_display_types.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,8 +1160,6 @@ struct intel_crtc_state {
11601160

11611161
bool double_wide;
11621162

1163-
int pbn;
1164-
11651163
struct intel_crtc_scaler_state scaler_state;
11661164

11671165
/* w/a for waiting 2 vblanks during crtc enable */

drivers/gpu/drm/i915/display/intel_dp_mst.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,14 +321,13 @@ static int mst_stream_find_vcpi_slots_for_bpp(struct intel_dp *intel_dp,
321321
* first branch device's link also applies here.
322322
*/
323323
pbn.full = remote_tu * mst_state->pbn_div.full;
324-
crtc_state->pbn = dfixed_trunc(pbn);
325324

326325
drm_WARN_ON(display->drm, remote_tu < crtc_state->dp_m_n.tu);
327326
crtc_state->dp_m_n.tu = remote_tu;
328327

329328
slots = drm_dp_atomic_find_time_slots(state, &intel_dp->mst_mgr,
330329
connector->port,
331-
crtc_state->pbn);
330+
dfixed_trunc(pbn));
332331
if (slots == -EDEADLK)
333332
return slots;
334333

0 commit comments

Comments
 (0)