提交 348a634d 编写于 作者: H Hans Verkuil 提交者: Mauro Carvalho Chehab

[media] bfin_capture: drop unnecessary vb2_is_streaming check

The stop_streaming op is only called if streaming is in progress,
so drop the unnecessary 'if (!vb2_is_streaming(vq))' check.
Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
Acked-by: NPawel Osciak <pawel@osciak.com>
Acked-by: NSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
上级 e37559b2
......@@ -433,9 +433,6 @@ static void bcap_stop_streaming(struct vb2_queue *vq)
struct ppi_if *ppi = bcap_dev->ppi;
int ret;
if (!vb2_is_streaming(vq))
return 0;
bcap_dev->stop = true;
wait_for_completion(&bcap_dev->comp);
ppi->ops->stop(ppi);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册