mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-22 02:17:36 -04:00
media: staging: imx: remove unnecessary out-of-memory error message
Remove dev_err() call after dma_alloc_coherent() failure. checkpatch.pl reports this as an unnecessary out-of-memory message because failure is already conveyed by returning -ENOMEM, and the current message does not provide additional useful debugging information. Signed-off-by: Shyam Sunder Reddy Padira <shyamsunderreddypadira@gmail.com> Signed-off-by: Frank Li <Frank.Li@nxp.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
committed by
Hans Verkuil
parent
e33062c19b
commit
a96fcde9fa
@@ -589,10 +589,8 @@ int imx_media_alloc_dma_buf(struct device *dev,
|
||||
buf->len = PAGE_ALIGN(size);
|
||||
buf->virt = dma_alloc_coherent(dev, buf->len, &buf->phys,
|
||||
GFP_DMA | GFP_KERNEL);
|
||||
if (!buf->virt) {
|
||||
dev_err(dev, "%s: failed\n", __func__);
|
||||
if (!buf->virt)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user