mirror of
https://github.com/apache/nuttx.git
synced 2026-09-21 13:25:12 +08:00
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:
committed by
Petro Karashchenko
parent
01d7f44480
commit
e15bccaa71
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user