]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
media: v4l: vsp1: Use vsp1_entity.pipe to check if entity belongs to a pipeline
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Thu, 22 Feb 2018 22:27:47 +0000 (17:27 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 4 May 2018 11:57:06 +0000 (07:57 -0400)
commitd4fedb0b91bc4ea585c029a6e8e0ee3dd4aad741
tree813fc50007d1da7a1ce5a72e1c157ccaf1253ab5
parent1ccbb32cb8b4b0445d4281a37752e54e0fcade4c
media: v4l: vsp1: Use vsp1_entity.pipe to check if entity belongs to a pipeline

The DRM pipeline handling code uses the entity's pipe list head to check
whether the entity is already included in a pipeline. This method is a
bit fragile in the sense that it uses list_empty() on a list_head that
is a list member. Replace it by a simpler check for the entity pipe
pointer.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/vsp1/vsp1_drm.c