projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a695a9
)
drm/mediatek: mtk_dpi: remove invalid error message
author
Philipp Zabel
<p.zabel@pengutronix.de>
Thu, 26 May 2016 15:19:39 +0000
(17:19 +0200)
committer
Philipp Zabel
<p.zabel@pengutronix.de>
Wed, 1 Jun 2016 14:09:54 +0000
(16:09 +0200)
Do not try to dereference dpi if it is NULL.
Since dpi can never be NULL when mtk_dpi_set_display_mode() is called,
remove the message.
Reported-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/drm/mediatek/mtk_dpi.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/mediatek/mtk_dpi.c
b/drivers/gpu/drm/mediatek/mtk_dpi.c
index d05ca7901315354e36994aa280f417dfa4fe203d..0186e500d2a544d8c90769428c7673bec1cd68c0 100644
(file)
--- a/
drivers/gpu/drm/mediatek/mtk_dpi.c
+++ b/
drivers/gpu/drm/mediatek/mtk_dpi.c
@@
-432,11
+432,6
@@
static int mtk_dpi_set_display_mode(struct mtk_dpi *dpi,
unsigned long pll_rate;
unsigned int factor;
- if (!dpi) {
- dev_err(dpi->dev, "invalid argument\n");
- return -EINVAL;
- }
-
pix_rate = 1000UL * mode->clock;
if (mode->clock <= 74000)
factor = 8 * 3;