drm/atmel: plane_state->fb iff plane_state->crtc
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 13 Dec 2019 17:26:05 +0000 (18:26 +0100)
committerSam Ravnborg <sam@ravnborg.org>
Fri, 13 Dec 2019 19:34:59 +0000 (20:34 +0100)
commit2840f1f0e4175bd0dac292408189332cc597d163
tree3540f1bff622b67acecba99885b7670274085470
parent4b6dd3cae3cb53a2c45e5238d7c1af7c39cd4685
drm/atmel: plane_state->fb iff plane_state->crtc

Checking both is one too much, so wrap a WARN_ON around it to stope
the copypasta.

Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Boris Brezillon <bbrezillon@kernel.org>
Cc: Nicolas Ferre <nicolas.ferre@microchip.com>
Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
Cc: Ludovic Desroches <ludovic.desroches@microchip.com>
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20191213172612.1514842-3-daniel.vetter@ffwll.ch
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c