media: s5p-mfc: use vb2_is_streaming()
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 8 Dec 2022 07:51:19 +0000 (08:51 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 6 Feb 2023 08:00:24 +0000 (09:00 +0100)
Don't touch q->streaming directly, use the vb2_is_streaming()
function instead.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/samsung/s5p-mfc/s5p_mfc.c

index f3e4cdac1ef3ccf5748f8a57f4b30e71fd36aff4..9d2cce124a34c8bef397adf091b9aeacde1f6c6b 100644 (file)
@@ -1021,8 +1021,8 @@ static __poll_t s5p_mfc_poll(struct file *file,
         * means either in driver already or waiting for driver to claim it
         * and start processing.
         */
-       if ((!src_q->streaming || list_empty(&src_q->queued_list))
-               && (!dst_q->streaming || list_empty(&dst_q->queued_list))) {
+       if ((!vb2_is_streaming(src_q) || list_empty(&src_q->queued_list)) &&
+           (!vb2_is_streaming(dst_q) || list_empty(&dst_q->queued_list))) {
                rc = EPOLLERR;
                goto end;
        }