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 <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-12-05 00:43:27 +08:00 committed by Petro Karashchenko
parent 01d7f44480
commit e15bccaa71
1 changed files with 0 additions and 5 deletions

View File

@ -69,11 +69,6 @@ static inline vbuf_container_t *dequeue_vbuf_unsafe(video_framebuff_t *fbuf)
} }
else else
{ {
if (fbuf->mode == V4L2_BUF_MODE_RING)
{
fbuf->vbuf_tail->next = fbuf->vbuf_top->next;
}
fbuf->vbuf_top = fbuf->vbuf_top->next; fbuf->vbuf_top = fbuf->vbuf_top->next;
} }