Skip to content

Commit

Permalink
dmaengine: qcom: gpi: Remove unnecessary print function dev_err()
Browse files Browse the repository at this point in the history
The print function dev_err() is redundant because
platform_get_irq() already prints an error.

Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
Link: https://lore.kernel.org/r/20211116013306.784-1-vulab@iscas.ac.cn
Signed-off-by: Vinod Koul <vkoul@kernel.org>
  • Loading branch information
ISCAS-Vulab authored and vinodkoul committed Nov 22, 2021
1 parent 29cf37f commit 2bfab6f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/dma/qcom/gpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -2206,10 +2206,8 @@ static int gpi_probe(struct platform_device *pdev)

/* set up irq */
ret = platform_get_irq(pdev, i);
if (ret < 0) {
dev_err(gpi_dev->dev, "platform_get_irq failed for %d:%d\n", i, ret);
if (ret < 0)
return ret;
}
gpii->irq = ret;

/* set up channel specific register info */
Expand Down

0 comments on commit 2bfab6f

Please sign in to comment.