On 29/04/2020 13:42, Tomi Valkeinen wrote: > tilcdc_plane_atomic_check() exits if state->fb == NULL, so no need to > check it again later. > > Signed-off-by: Tomi Valkeinen <tomi.valkei...@ti.com>
Reviewed-by: Jyri Sarha <jsa...@ti.com> > --- > drivers/gpu/drm/tilcdc/tilcdc_plane.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/tilcdc/tilcdc_plane.c > b/drivers/gpu/drm/tilcdc/tilcdc_plane.c > index e2090020b3a0..0d09b31ae759 100644 > --- a/drivers/gpu/drm/tilcdc/tilcdc_plane.c > +++ b/drivers/gpu/drm/tilcdc/tilcdc_plane.c > @@ -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__); > -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel