OSDN Git Service

media: replace WARN_ON in __media_pipeline_start()
authorShuah Khan <shuah@kernel.org>
Sat, 23 Feb 2019 00:17:09 +0000 (19:17 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 19 Mar 2019 18:01:08 +0000 (14:01 -0400)
commit3eb87773dee63309967b1d4d8b9896f4e4fdd640
tree07fe579cb1f481a854f0d78df9f3de595812cf65
parente855165f3dae6f71da859a5f00b85d5368641d61
media: replace WARN_ON in __media_pipeline_start()

__media_pipeline_start() does WARN_ON() when active pipe doesn't
match the input arg entity's pipe.

Replace WARN_ON with a conditional and error message that includes
names of both entities.

Signed-off-by: Shuah Khan <shuah@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/media-entity.c