mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 08:43:31 +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
1 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue