Commit 89fc8686 authored by Jean-Francois Moine's avatar Jean-Francois Moine Committed by Dave Airlie

drm/i2c: tda998x: Remove useless test

In tda998x_encoder_destroy(), priv->cec is never NULL, so,
remove its test.
Signed-off-by: default avatarJean-Francois Moine <moinejf@free.fr>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent ffae7f0a
...@@ -1196,8 +1196,7 @@ tda998x_encoder_destroy(struct drm_encoder *encoder) ...@@ -1196,8 +1196,7 @@ tda998x_encoder_destroy(struct drm_encoder *encoder)
if (priv->hdmi->irq) if (priv->hdmi->irq)
free_irq(priv->hdmi->irq, priv); free_irq(priv->hdmi->irq, priv);
if (priv->cec) i2c_unregister_device(priv->cec);
i2c_unregister_device(priv->cec);
drm_i2c_encoder_destroy(encoder); drm_i2c_encoder_destroy(encoder);
kfree(priv); kfree(priv);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment