Skip to content

Commit

Permalink
media: mtk-vcodec: remove unused dma_attrs
Browse files Browse the repository at this point in the history
The local variable dma_attrs is set but never read.

Link: http://lkml.kernel.org/r/1468399300-5399-1-git-send-email-k.kozlowski@samsung.com
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Krzysztof Kozlowski authored and Linus Torvalds committed Aug 4, 2016
1 parent 4b9d314 commit 1605d27
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
DEFINE_DMA_ATTRS(attrs);

dev = devm_kzalloc(&pdev->dev, sizeof(*dev), GFP_KERNEL);
if (!dev)
Expand Down Expand Up @@ -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",
vfd_enc->num);

Expand Down

0 comments on commit 1605d27

Please sign in to comment.