* [PATCH 06/10] drm/xrockchip: plane_state->fb iff plane_state->crtc [not found] <20191213172612.1514842-1-daniel.vetter@ffwll.ch> @ 2019-12-13 17:26 ` Daniel Vetter 2019-12-13 18:03 ` Heiko Stübner 0 siblings, 1 reply; 2+ messages in thread From: Daniel Vetter @ 2019-12-13 17:26 UTC (permalink / raw) To: DRI Development Cc: Daniel Vetter, Sandy Huang, linux-rockchip, Daniel Vetter, linux-arm-kernel 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: Sandy Huang <hjc@rock-chips.com> Cc: "Heiko Stübner" <heiko@sntech.de> Cc: linux-arm-kernel@lists.infradead.org Cc: linux-rockchip@lists.infradead.org --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c index d04b3492bdac..cecb2cc781f5 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c +++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c @@ -724,7 +724,7 @@ static int vop_plane_atomic_check(struct drm_plane *plane, int max_scale = win->phy->scl ? FRAC_16_16(8, 1) : DRM_PLANE_HELPER_NO_SCALING; - if (!crtc || !fb) + if (!crtc || WARN_ON(!fb)) return 0; crtc_state = drm_atomic_get_existing_crtc_state(state->state, crtc); -- 2.24.0 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel ^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 06/10] drm/xrockchip: plane_state->fb iff plane_state->crtc 2019-12-13 17:26 ` [PATCH 06/10] drm/xrockchip: plane_state->fb iff plane_state->crtc Daniel Vetter @ 2019-12-13 18:03 ` Heiko Stübner 0 siblings, 0 replies; 2+ messages in thread From: Heiko Stübner @ 2019-12-13 18:03 UTC (permalink / raw) To: Daniel Vetter Cc: linux-arm-kernel, Daniel Vetter, Sandy Huang, DRI Development, linux-rockchip Am Freitag, 13. Dezember 2019, 18:26:08 CET schrieb Daniel Vetter: > 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: Sandy Huang <hjc@rock-chips.com> > Cc: "Heiko Stübner" <heiko@sntech.de> > Cc: linux-arm-kernel@lists.infradead.org > Cc: linux-rockchip@lists.infradead.org patch subject should be "drm/rockchip" without the x, otherwise Reviewed-by: Heiko Stuebner <heiko@sntech.de> > --- > drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c > index d04b3492bdac..cecb2cc781f5 100644 > --- a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c > +++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c > @@ -724,7 +724,7 @@ static int vop_plane_atomic_check(struct drm_plane *plane, > int max_scale = win->phy->scl ? FRAC_16_16(8, 1) : > DRM_PLANE_HELPER_NO_SCALING; > > - if (!crtc || !fb) > + if (!crtc || WARN_ON(!fb)) > return 0; > > crtc_state = drm_atomic_get_existing_crtc_state(state->state, crtc); > ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-12-13 18:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20191213172612.1514842-1-daniel.vetter@ffwll.ch>
2019-12-13 17:26 ` [PATCH 06/10] drm/xrockchip: plane_state->fb iff plane_state->crtc Daniel Vetter
2019-12-13 18:03 ` Heiko Stübner
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox