From e15bccaa7187cf986cfa14597e6b6301c35eb48d Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Mon, 5 Dec 2022 00:43:27 +0800 Subject: [PATCH] drivers/video: Don't need update vbuf_tail in dequeue_vbuf_unsafe since it is already done in video_framebuff_queue_container Signed-off-by: Xiang Xiao --- drivers/video/video_framebuff.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/video/video_framebuff.c b/drivers/video/video_framebuff.c index d75eef4371..6c90842c1d 100644 --- a/drivers/video/video_framebuff.c +++ b/drivers/video/video_framebuff.c @@ -69,11 +69,6 @@ static inline vbuf_container_t *dequeue_vbuf_unsafe(video_framebuff_t *fbuf) } else { - if (fbuf->mode == V4L2_BUF_MODE_RING) - { - fbuf->vbuf_tail->next = fbuf->vbuf_top->next; - } - fbuf->vbuf_top = fbuf->vbuf_top->next; }