diff options
author | Jiapeng Chong <jiapeng.chong@linux.alibaba.com> | 2022-03-10 16:27:56 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-03-10 12:17:51 +0000 |
commit | 2588a01431a85a9bb8b2eac9023181ddd714a695 (patch) | |
tree | 67446a272ce891069a1cf8b5ae4835c2c01c07b0 /sound | |
parent | 6ddf611219ba8f7c8fa0d26b39710a641e7d37a5 (diff) | |
download | linux-2588a01431a85a9bb8b2eac9023181ddd714a695.tar.bz2 |
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>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/atmel/mchp-pdmc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/atmel/mchp-pdmc.c b/sound/soc/atmel/mchp-pdmc.c index c44636f6207d..7b737e3f67b7 100644 --- a/sound/soc/atmel/mchp-pdmc.c +++ b/sound/soc/atmel/mchp-pdmc.c @@ -987,10 +987,8 @@ static int mchp_pdmc_probe(struct platform_device *pdev) return ret; irq = platform_get_irq(pdev, 0); - if (irq < 0) { - dev_err(dev, "failed to get irq: %d\n", irq); + if (irq < 0) return irq; - } dd->pclk = devm_clk_get(dev, "pclk"); if (IS_ERR(dd->pclk)) { |