[media] s5p-mfc: Collapse two error message into one
authorShuah Khan <shuahkh@osg.samsung.com>
Tue, 18 Oct 2016 23:28:22 +0000 (21:28 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 16 Nov 2016 18:25:37 +0000 (16:25 -0200)
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>
drivers/media/platform/s5p-mfc/s5p_mfc_opr.c

index 1e7250260a9aff35021fd5fe2a9a28f5bff45f7b..f0f5e8ce5416627362b92f5f5047bdba4e794d3e 100644 (file)
@@ -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;