Commit 98df8448 authored by Tomi Valkeinen's avatar Tomi Valkeinen

drm/omap: remove extra check in dpi and sdi

Both dpi and sdi check for 'mgr != NULL' in check_timings. This check is
not necessary, as mgr must always be set before check_timings. Remove
the check.
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 34218998
...@@ -516,7 +516,7 @@ static int dpi_check_timings(struct omap_dss_device *dssdev, ...@@ -516,7 +516,7 @@ static int dpi_check_timings(struct omap_dss_device *dssdev,
if (timings->x_res % 8 != 0) if (timings->x_res % 8 != 0)
return -EINVAL; return -EINVAL;
if (mgr && !dispc_mgr_timings_ok(mgr->id, timings)) if (!dispc_mgr_timings_ok(mgr->id, timings))
return -EINVAL; return -EINVAL;
if (timings->pixelclock == 0) if (timings->pixelclock == 0)
......
...@@ -244,7 +244,7 @@ static int sdi_check_timings(struct omap_dss_device *dssdev, ...@@ -244,7 +244,7 @@ static int sdi_check_timings(struct omap_dss_device *dssdev,
{ {
struct omap_overlay_manager *mgr = sdi.output.manager; struct omap_overlay_manager *mgr = sdi.output.manager;
if (mgr && !dispc_mgr_timings_ok(mgr->id, timings)) if (!dispc_mgr_timings_ok(mgr->id, timings))
return -EINVAL; return -EINVAL;
if (timings->pixelclock == 0) if (timings->pixelclock == 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment