提交 d3bb5fe9 编写于 作者: S Srinivas Kandagatla 提交者: Greg Kroah-Hartman

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: NSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20201127102451.17114-8-srinivas.kandagatla@linaro.orgSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 39014ce6
...@@ -689,7 +689,6 @@ static int qcom_slim_ngd_init_rx_msgq(struct qcom_slim_ngd_ctrl *ctrl) ...@@ -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, ctrl->rx_base = dma_alloc_coherent(dev, size, &ctrl->rx_phys_base,
GFP_KERNEL); GFP_KERNEL);
if (!ctrl->rx_base) { if (!ctrl->rx_base) {
dev_err(dev, "dma_alloc_coherent failed\n");
ret = -ENOMEM; ret = -ENOMEM;
goto rel_rx; goto rel_rx;
} }
...@@ -728,7 +727,6 @@ static int qcom_slim_ngd_init_tx_msgq(struct qcom_slim_ngd_ctrl *ctrl) ...@@ -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, ctrl->tx_base = dma_alloc_coherent(dev, size, &ctrl->tx_phys_base,
GFP_KERNEL); GFP_KERNEL);
if (!ctrl->tx_base) { if (!ctrl->tx_base) {
dev_err(dev, "dma_alloc_coherent failed\n");
ret = -EINVAL; ret = -EINVAL;
goto rel_tx; goto rel_tx;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册