All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit 1605d271 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Linus Torvalds

media: mtk-vcodec: remove unused dma_attrs

The local variable dma_attrs is set but never read.

Link: default avatarKrzysztof Kozlowski <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 4b9d314c
......@@ -246,7 +246,6 @@ static int mtk_vcodec_probe(struct platform_device *pdev)
struct video_device *vfd_enc;
struct resource *res;
int i, j, ret;
dev = devm_kzalloc(&pdev->dev, sizeof(*dev), GFP_KERNEL);
if (!dev)
......@@ -378,9 +377,6 @@ static int mtk_vcodec_probe(struct platform_device *pdev)
goto err_enc_reg;
/* Avoid the iommu eat big hunks */
dma_set_attr(DMA_ATTR_ALLOC_SINGLE_PAGES, &attrs);
mtk_v4l2_debug(0, "encoder registered as /dev/video%d",
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment