Skip to content
Snippets Groups Projects
Commit e798719c authored by Benjamin Gaignard's avatar Benjamin Gaignard
Browse files

media: nuvoton: Stop direct calls to queue num_buffers field


Use vb2_get_num_buffers() to avoid using queue num_buffers field directly.

Signed-off-by: default avatarBenjamin Gaignard <benjamin.gaignard@collabora.com>
CC: Joseph Liu <kwliu@nuvoton.com>
CC: Marvin Lin <kflin@nuvoton.com>
parent 20afbdaf
No related branches found
No related tags found
No related merge requests found
......@@ -393,7 +393,7 @@ static void npcm_video_free_diff_table(struct npcm_video *video)
struct rect_list *tmp;
unsigned int i;
for (i = 0; i < video->queue.num_buffers; i++) {
for (i = 0; i < vb2_get_num_buffers(&video->queue); i++) {
head = &video->list[i];
list_for_each_safe(pos, nx, head) {
tmp = list_entry(pos, struct rect_list, list);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment