From: Fabio Estevam Date: Mon, 27 Oct 2014 16:49:39 +0000 (-0200) Subject: serial: imx: Remove unneeded OOM error message X-Git-Tag: v5.15~16682^2~122 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f1f2b6e497170a6ab83aeb781688a65c25621836;p=platform%2Fkernel%2Flinux-starfive.git serial: imx: Remove unneeded OOM error message 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index e7dc210..9e8685e 100644 --- a/drivers/tty/serial/imx.c +++ b/drivers/tty/serial/imx.c @@ -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; }