drm/i915/irq: drop unused but set variable tmp
authorJani Nikula <jani.nikula@intel.com>
Fri, 26 May 2023 16:38:00 +0000 (19:38 +0300)
committerJani Nikula <jani.nikula@intel.com>
Wed, 7 Jun 2023 10:23:07 +0000 (13:23 +0300)
Prepare for re-enabling -Wunused-but-set-variable.

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/6c529e8721d56b0148a3a84fb2d396d4485e09a2.1685119007.git.jani.nikula@intel.com
drivers/gpu/drm/i915/display/intel_display_irq.c

index 3b2a287d204181a608b6c2f4ad885a8c45fedc28..31dd7c9c76b9c209f47be66ea6ca21467f98f597 100644 (file)
@@ -873,7 +873,7 @@ static void gen11_dsi_te_interrupt_handler(struct drm_i915_private *dev_priv,
        enum pipe pipe = INVALID_PIPE;
        enum transcoder dsi_trans;
        enum port port;
-       u32 val, tmp;
+       u32 val;
 
        /*
         * Incase of dual link, TE comes from DSI_1
@@ -920,7 +920,7 @@ static void gen11_dsi_te_interrupt_handler(struct drm_i915_private *dev_priv,
 
        /* clear TE in dsi IIR */
        port = (te_trigger & DSI1_TE) ? PORT_B : PORT_A;
-       tmp = intel_uncore_rmw(&dev_priv->uncore, DSI_INTR_IDENT_REG(port), 0, 0);
+       intel_uncore_rmw(&dev_priv->uncore, DSI_INTR_IDENT_REG(port), 0, 0);
 }
 
 static u32 gen8_de_pipe_flip_done_mask(struct drm_i915_private *i915)