diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2014-07-07 19:59:51 +0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-07-22 05:27:46 +0400 |
commit | 89fc868674ba36d3a332dd2298fbfda5be724162 (patch) | |
tree | 47f8ca2923b83163ede1e32eede1055fa5b2ae73 /drivers/gpu/drm/i2c/tda998x_drv.c | |
parent | ffae7f0af26684fbe25f7992424f0f170a1828a7 (diff) | |
download | linux-89fc868674ba36d3a332dd2298fbfda5be724162.tar.xz |
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>
Diffstat (limited to 'drivers/gpu/drm/i2c/tda998x_drv.c')
-rw-r--r-- | drivers/gpu/drm/i2c/tda998x_drv.c | 3 |
1 files changed, 1 insertions, 2 deletions
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); } |