mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-11-08 19:55:16 -05:00
[media] s5p_mfc: Remove redundant casts
Both sides of these assignments actually have type "const struct vb2_mem_ops *", so the casts are unnecessary and slightly confusing. Signed-off-by: Rasmus Villemoes <[email protected]> Signed-off-by: Kamil Debski <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
060f79d575
commit
749ae716b2
1 changed files with 2 additions and 2 deletions
|
|
@ -820,7 +820,7 @@ static int s5p_mfc_open(struct file *file)
|
|||
ret = -ENOENT;
|
||||
goto err_queue_init;
|
||||
}
|
||||
q->mem_ops = (struct vb2_mem_ops *)&vb2_dma_contig_memops;
|
||||
q->mem_ops = &vb2_dma_contig_memops;
|
||||
q->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY;
|
||||
ret = vb2_queue_init(q);
|
||||
if (ret) {
|
||||
|
|
@ -842,7 +842,7 @@ static int s5p_mfc_open(struct file *file)
|
|||
ret = -ENOENT;
|
||||
goto err_queue_init;
|
||||
}
|
||||
q->mem_ops = (struct vb2_mem_ops *)&vb2_dma_contig_memops;
|
||||
q->mem_ops = &vb2_dma_contig_memops;
|
||||
q->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_COPY;
|
||||
ret = vb2_queue_init(q);
|
||||
if (ret) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue