Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

slimbus: qcom-ngd-ctrl: remove redundant out of memory messages

Failure of dma_alloc_coherent will already throw a error message,
so addition message is really redundant here. Remove it!

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20201127102451.17114-8-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Srinivas Kandagatla and committed by
Greg Kroah-Hartman
d3bb5fe9 39014ce6

-2
-2
drivers/slimbus/qcom-ngd-ctrl.c
··· 689 689 ctrl->rx_base = dma_alloc_coherent(dev, size, &ctrl->rx_phys_base, 690 690 GFP_KERNEL); 691 691 if (!ctrl->rx_base) { 692 - dev_err(dev, "dma_alloc_coherent failed\n"); 693 692 ret = -ENOMEM; 694 693 goto rel_rx; 695 694 } ··· 727 728 ctrl->tx_base = dma_alloc_coherent(dev, size, &ctrl->tx_phys_base, 728 729 GFP_KERNEL); 729 730 if (!ctrl->tx_base) { 730 - dev_err(dev, "dma_alloc_coherent failed\n"); 731 731 ret = -EINVAL; 732 732 goto rel_tx; 733 733 }