mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
[media] s5p-mfc: Collapse two error message into one
s5p_mfc_alloc_priv_buf() prints two message to report invalid memory configuration error. Collapse them into a single message. Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
90b4c9c65a
commit
0f7a55b4e0
1 changed files with 1 additions and 2 deletions
|
@ -50,8 +50,7 @@ int s5p_mfc_alloc_priv_buf(struct device *dev, dma_addr_t base,
|
|||
}
|
||||
|
||||
if (b->dma < base) {
|
||||
mfc_err("Invaling memory configuration!\n");
|
||||
mfc_err("Allocated buffer (%pad) is lower than memory base address (%pad)\n",
|
||||
mfc_err("Invalid memory configuration - buffer (%pad) is below base memory address(%pad)\n",
|
||||
&b->dma, &base);
|
||||
dma_free_coherent(dev, b->size, b->virt, b->dma);
|
||||
return -ENOMEM;
|
||||
|
|
Loading…
Reference in a new issue