media: staging: media: imx: imx7-media-csi: Drop error message on alloc failure
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 9 May 2022 22:32:33 +0000 (23:32 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 8 Jul 2022 17:02:54 +0000 (18:02 +0100)
The kernel memory allocators already complain loudly to the log when
allocation fails. There's no need for an additional message.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Rui Miguel Silva <rmfrfs@gmail.com>
Tested-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/imx/imx7-media-csi.c

index 4f65e12..52653f9 100644 (file)
@@ -442,10 +442,8 @@ static int imx7_csi_alloc_dma_buf(struct imx7_csi *csi,
        buf->len = PAGE_ALIGN(size);
        buf->virt = dma_alloc_coherent(csi->dev, buf->len, &buf->phys,
                                       GFP_DMA | GFP_KERNEL);
-       if (!buf->virt) {
-               dev_err(csi->dev, "%s: failed\n", __func__);
+       if (!buf->virt)
                return -ENOMEM;
-       }
 
        return 0;
 }