mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-11 15:14:03 +08:00
[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: Hans Verkuil <hans.verkuil@cisco.com> Acked-by: Pawel Osciak <pawel@osciak.com> Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:
parent
e37559b22c
commit
348a634de2
@ -433,9 +433,6 @@ static void bcap_stop_streaming(struct vb2_queue *vq)
|
|||||||
struct ppi_if *ppi = bcap_dev->ppi;
|
struct ppi_if *ppi = bcap_dev->ppi;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (!vb2_is_streaming(vq))
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
bcap_dev->stop = true;
|
bcap_dev->stop = true;
|
||||||
wait_for_completion(&bcap_dev->comp);
|
wait_for_completion(&bcap_dev->comp);
|
||||||
ppi->ops->stop(ppi);
|
ppi->ops->stop(ppi);
|
||||||
|
Loading…
Reference in New Issue
Block a user