slimbus: qcom-ngd-ctrl: remove redundant out of memory messages
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Fri, 27 Nov 2020 10:24:51 +0000 (10:24 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Nov 2020 15:03:43 +0000 (16:03 +0100)
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>
drivers/slimbus/qcom-ngd-ctrl.c

index 82dad74905880141f3a3ab28eb4adf8e07181f2c..c054e83ab63615564e7db8f405582a13785c3ebf 100644 (file)
@@ -689,7 +689,6 @@ static int qcom_slim_ngd_init_rx_msgq(struct qcom_slim_ngd_ctrl *ctrl)
        ctrl->rx_base = dma_alloc_coherent(dev, size, &ctrl->rx_phys_base,
                                           GFP_KERNEL);
        if (!ctrl->rx_base) {
-               dev_err(dev, "dma_alloc_coherent failed\n");
                ret = -ENOMEM;
                goto rel_rx;
        }
@@ -728,7 +727,6 @@ static int qcom_slim_ngd_init_tx_msgq(struct qcom_slim_ngd_ctrl *ctrl)
        ctrl->tx_base = dma_alloc_coherent(dev, size, &ctrl->tx_phys_base,
                                           GFP_KERNEL);
        if (!ctrl->tx_base) {
-               dev_err(dev, "dma_alloc_coherent failed\n");
                ret = -EINVAL;
                goto rel_tx;
        }