Skip to content

Commit 3ba3908

Browse files
committed
drm/i915/ddi: drop unused but set variable intel_dp
Prepare for re-enabling -Wunused-but-set-variable. The intel_dp variable has been unused since commit ef79faf ("drm/i915: Eliminate intel_dp.regs.dp_tp_{ctl,status}"). Signed-off-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Jouni Högander <jouni.hogander@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/66ca543b400a2048a6a84bb57a7bac8943014a96.1685119007.git.jani.nikula@intel.com
1 parent 47e157a commit 3ba3908

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2225,12 +2225,10 @@ static void intel_ddi_enable_fec(struct intel_encoder *encoder,
22252225
const struct intel_crtc_state *crtc_state)
22262226
{
22272227
struct drm_i915_private *dev_priv = to_i915(encoder->base.dev);
2228-
struct intel_dp *intel_dp;
22292228

22302229
if (!crtc_state->fec_enable)
22312230
return;
22322231

2233-
intel_dp = enc_to_intel_dp(encoder);
22342232
intel_de_rmw(dev_priv, dp_tp_ctl_reg(encoder, crtc_state),
22352233
0, DP_TP_CTL_FEC_ENABLE);
22362234
}
@@ -2239,12 +2237,10 @@ static void intel_ddi_disable_fec_state(struct intel_encoder *encoder,
22392237
const struct intel_crtc_state *crtc_state)
22402238
{
22412239
struct drm_i915_private *dev_priv = to_i915(encoder->base.dev);
2242-
struct intel_dp *intel_dp;
22432240

22442241
if (!crtc_state->fec_enable)
22452242
return;
22462243

2247-
intel_dp = enc_to_intel_dp(encoder);
22482244
intel_de_rmw(dev_priv, dp_tp_ctl_reg(encoder, crtc_state),
22492245
DP_TP_CTL_FEC_ENABLE, 0);
22502246
intel_de_posting_read(dev_priv, dp_tp_ctl_reg(encoder, crtc_state));

0 commit comments

Comments
 (0)