diff options
author | Michael Tretter <m.tretter@pengutronix.de> | 2017-03-03 09:12:47 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-03-22 10:06:24 -0300 |
commit | 888708b1decb7d12e09095cd67e5b6442401cd51 (patch) | |
tree | a8deffe394ab04adcbbcde42a26100d97a931e6c /drivers | |
parent | 89ed025d5c53f4ca0193ed71bfaf007259be2a8f (diff) | |
download | blackbird-op-linux-888708b1decb7d12e09095cd67e5b6442401cd51.tar.gz blackbird-op-linux-888708b1decb7d12e09095cd67e5b6442401cd51.zip |
[media] coda: Use && instead of & for non-bitfield conditions
streamon and streamoff are used as boolean values, not as bitfields.
Therefore, the logical && should be used to combine them.
Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/platform/coda/coda-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/coda/coda-common.c b/drivers/media/platform/coda/coda-common.c index 85a8add36214..ee9d4b81d675 100644 --- a/drivers/media/platform/coda/coda-common.c +++ b/drivers/media/platform/coda/coda-common.c @@ -1459,7 +1459,7 @@ static int coda_start_streaming(struct vb2_queue *q, unsigned int count) } /* Don't start the coda unless both queues are on */ - if (!(ctx->streamon_out & ctx->streamon_cap)) + if (!(ctx->streamon_out && ctx->streamon_cap)) return 0; q_data_dst = get_q_data(ctx, V4L2_BUF_TYPE_VIDEO_CAPTURE); |