mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-13 14:46:33 +07:00
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: Tomi Valkeinen <tomi.valkeinen@ti.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200429104234.18910-2-tomi.valkeinen@ti.com Reviewed-by: Jyri Sarha <jsarha@ti.com>
This commit is contained in:
parent
3f9c1c872c
commit
26c06633f6
@ -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__);
|
||||||
|
Loading…
Reference in New Issue
Block a user