Skip to content

Commit

Permalink
[media] bfin_capture: drop unnecessary vb2_is_streaming check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Apr 23, 2014
1 parent e37559b commit 348a634
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/media/platform/blackfin/bfin_capture.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 348a634

Please sign in to comment.