Skip to content

Commit

Permalink
drm/i915/lpe_audio: Remove pointless irq_to_desc() usage
Browse files Browse the repository at this point in the history
Nothing uses the result and nothing should ever use it in driver code.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Acked-by: Jani Nikula <jani.nikula@intel.com>
Link: https://lore.kernel.org/r/20201210194043.862572239@linutronix.de
  • Loading branch information
Thomas Gleixner committed Dec 15, 2020
1 parent ba22d0e commit 3afba09
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/gpu/drm/i915/display/intel_lpe_audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,13 +297,9 @@ int intel_lpe_audio_init(struct drm_i915_private *dev_priv)
*/
void intel_lpe_audio_teardown(struct drm_i915_private *dev_priv)
{
struct irq_desc *desc;

if (!HAS_LPE_AUDIO(dev_priv))
return;

desc = irq_to_desc(dev_priv->lpe_audio.irq);

lpe_audio_platdev_destroy(dev_priv);

irq_free_desc(dev_priv->lpe_audio.irq);
Expand Down

0 comments on commit 3afba09

Please sign in to comment.