From: Hans Verkuil Date: Thu, 17 Apr 2014 05:52:16 +0000 (-0300) Subject: [media] bfin_capture: drop unnecessary vb2_is_streaming check X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=348a634de2407aab8cc9c14a98d8c74aea075bb3;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [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 Acked-by: Pawel Osciak Acked-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/blackfin/bfin_capture.c b/drivers/media/platform/blackfin/bfin_capture.c index dfb09d4ee6d1..16f643c4aad6 100644 --- a/drivers/media/platform/blackfin/bfin_capture.c +++ b/drivers/media/platform/blackfin/bfin_capture.c @@ -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);