mirror of
https://github.com/torvalds/linux.git
synced 2024-12-09 12:41:33 +00: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;
|
||||
}
|
||||
|
||||
if (state->fb && old_state->fb &&
|
||||
state->fb->format != old_state->fb->format) {
|
||||
if (old_state->fb && state->fb->format != old_state->fb->format) {
|
||||
dev_dbg(plane->dev->dev,
|
||||
"%s(): pixel format change requires mode_change\n",
|
||||
__func__);
|
||||
|
Loading…
Reference in New Issue
Block a user