Skip to content

Commit d3bb5fe

Browse files
Srinivas-Kandagatlagregkh
authored andcommitted
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>
1 parent 39014ce commit d3bb5fe

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/slimbus/qcom-ngd-ctrl.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,6 @@ static int qcom_slim_ngd_init_rx_msgq(struct qcom_slim_ngd_ctrl *ctrl)
689689
ctrl->rx_base = dma_alloc_coherent(dev, size, &ctrl->rx_phys_base,
690690
GFP_KERNEL);
691691
if (!ctrl->rx_base) {
692-
dev_err(dev, "dma_alloc_coherent failed\n");
693692
ret = -ENOMEM;
694693
goto rel_rx;
695694
}
@@ -728,7 +727,6 @@ static int qcom_slim_ngd_init_tx_msgq(struct qcom_slim_ngd_ctrl *ctrl)
728727
ctrl->tx_base = dma_alloc_coherent(dev, size, &ctrl->tx_phys_base,
729728
GFP_KERNEL);
730729
if (!ctrl->tx_base) {
731-
dev_err(dev, "dma_alloc_coherent failed\n");
732730
ret = -EINVAL;
733731
goto rel_tx;
734732
}

0 commit comments

Comments
 (0)