Commit 26c06633 authored by Tomi Valkeinen's avatar Tomi Valkeinen

drm/tilcdc: remove unnecessary state->fb check

tilcdc_plane_atomic_check() exits if state->fb == NULL, so no need to
check it again later.
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200429104234.18910-2-tomi.valkeinen@ti.comReviewed-by: default avatarJyri Sarha <jsarha@ti.com>
parent 3f9c1c87
...@@ -62,8 +62,7 @@ static int tilcdc_plane_atomic_check(struct drm_plane *plane, ...@@ -62,8 +62,7 @@ static int tilcdc_plane_atomic_check(struct drm_plane *plane,
return -EINVAL; return -EINVAL;
} }
if (state->fb && old_state->fb && if (old_state->fb && state->fb->format != old_state->fb->format) {
state->fb->format != old_state->fb->format) {
dev_dbg(plane->dev->dev, dev_dbg(plane->dev->dev,
"%s(): pixel format change requires mode_change\n", "%s(): pixel format change requires mode_change\n",
__func__); __func__);
......
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