projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ffae7f0
)
drm/i2c: tda998x: Remove useless test
author
Jean-Francois Moine
<moinejf@free.fr>
Mon, 7 Jul 2014 15:59:51 +0000
(17:59 +0200)
committer
Dave Airlie
<airlied@redhat.com>
Tue, 22 Jul 2014 01:27:46 +0000
(11:27 +1000)
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>
drivers/gpu/drm/i2c/tda998x_drv.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i2c/tda998x_drv.c
b/drivers/gpu/drm/i2c/tda998x_drv.c
index
ac357b0
..
a8f1e03
100644
(file)
--- 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);
}