MLK-22653-3 drm/imx: dpu: crtc: Remove WARN_ON(!crtc->state->event)
authorLiu Ying <victor.liu@nxp.com>
Mon, 23 Sep 2019 02:30:58 +0000 (10:30 +0800)
committerLiu Ying <victor.liu@nxp.com>
Thu, 26 Sep 2019 01:44:17 +0000 (09:44 +0800)
commit81a19fd9fdbba5f56ad197391a024235df59d6d3
tree3b31a142b3fe2ccb595827e881228b93575edabe
parentac25a72dcba88acbb7b5cb2087838ef692c4a115
MLK-22653-3 drm/imx: dpu: crtc: Remove WARN_ON(!crtc->state->event)

The DRM atomic core ensures crtc->state->event is not NULL when
calling the ->atomic_disable() or the ->atomic_flush() callbacks.
So, let's remove the unnecessary NULL check warning on it.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
(cherry picked from commit 834bff532fe22a79708459ec976da0a74a2e97e2)
drivers/gpu/drm/imx/dpu/dpu-crtc.c