drm/i2c: tda998x: Remove useless test
In tda998x_encoder_destroy(), priv->cec is never NULL, so, remove its test. Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
ffae7f0af2
commit
89fc868674
|
@ -1196,8 +1196,7 @@ tda998x_encoder_destroy(struct drm_encoder *encoder)
|
|||
if (priv->hdmi->irq)
|
||||
free_irq(priv->hdmi->irq, priv);
|
||||
|
||||
if (priv->cec)
|
||||
i2c_unregister_device(priv->cec);
|
||||
i2c_unregister_device(priv->cec);
|
||||
drm_i2c_encoder_destroy(encoder);
|
||||
kfree(priv);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue