Skip to content

Commit 2588a01

Browse files
wb-zjp846396broonie
authored andcommitted
ASoC: atmel: mchp-pdmc: Remove unnecessary print function dev_err()
The print function dev_err() is redundant because platform_get_irq() already prints an error. Eliminate the follow coccicheck warning: ./sound/soc/atmel/mchp-pdmc.c:991:2-9: line 991 is redundant because platform_get_irq() already prints an error. Reported-by: Abaci Robot <abaci@linux.alibaba.com> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com> Reviewed-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com> Link: https://lore.kernel.org/r/20220310082756.1183-1-jiapeng.chong@linux.alibaba.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 6ddf611 commit 2588a01

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

sound/soc/atmel/mchp-pdmc.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -987,10 +987,8 @@ static int mchp_pdmc_probe(struct platform_device *pdev)
987987
return ret;
988988

989989
irq = platform_get_irq(pdev, 0);
990-
if (irq < 0) {
991-
dev_err(dev, "failed to get irq: %d\n", irq);
990+
if (irq < 0)
992991
return irq;
993-
}
994992

995993
dd->pclk = devm_clk_get(dev, "pclk");
996994
if (IS_ERR(dd->pclk)) {

0 commit comments

Comments
 (0)