Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1196,7 +1196,6 @@ 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);
	drm_i2c_encoder_destroy(encoder);
	kfree(priv);