From: Jean-Francois Moine Date: Mon, 7 Jul 2014 15:59:51 +0000 (+0200) Subject: drm/i2c: tda998x: Remove useless test X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=89fc868674ba36d3a332dd2298fbfda5be724162;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/gpu/drm/i2c/tda998x_drv.c index ac357b02bd35..a8f1e03bd1f5 100644 --- a/drivers/gpu/drm/i2c/tda998x_drv.c +++ b/drivers/gpu/drm/i2c/tda998x_drv.c @@ -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); }