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

Commit 515ba6a5 authored by Philipp Zabel's avatar Philipp Zabel
Browse files

drm/mediatek: mtk_dpi: remove invalid error message



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: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
parent 1a695a90
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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;