serial: imx: Remove unneeded OOM error message
authorFabio Estevam <fabio.estevam@freescale.com>
Mon, 27 Oct 2014 16:49:39 +0000 (14:49 -0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Nov 2014 04:03:20 +0000 (20:03 -0800)
When kzalloc() fails the core MM will already complain about it, so there is
no need to have the error message locally.

Remove the unneeded error message.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c

index e7dc210..9e8685e 100644 (file)
@@ -991,7 +991,6 @@ static int imx_uart_dma_init(struct imx_port *sport)
 
        sport->rx_buf = kzalloc(PAGE_SIZE, GFP_KERNEL);
        if (!sport->rx_buf) {
-               dev_err(dev, "cannot alloc DMA buffer.\n");
                ret = -ENOMEM;
                goto err;
        }