diff options
author | Jian Dong <dongjian@yulong.com> | 2021-03-24 06:11:14 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-03-24 22:50:21 +0300 |
commit | f56f2b953bccabb9bd283a734c7e35a1bb1c1ff8 (patch) | |
tree | 880b4f230bef9ae8f166bb2e7c3b0aae094edcfd /drivers/regulator | |
parent | 320fcd6bbd2b500923db518902c2c640242d2b50 (diff) | |
download | linux-f56f2b953bccabb9bd283a734c7e35a1bb1c1ff8.tar.xz |
regulator: mt6360: remove redundant error print
fixes coccicheck warning:
drivers/regulator/mt6360-regulator.c:384:3-10: line 384 is
redundant because platform_get_irq() already prints an error
in fact it is not platform_get_irq but platform_get_irq_byname print error
Signed-off-by: Jian Dong <dongjian@yulong.com>
Link: https://lore.kernel.org/r/1616555474-158789-1-git-send-email-dj0227@163.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/mt6360-regulator.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/regulator/mt6360-regulator.c b/drivers/regulator/mt6360-regulator.c index 15308ee29c13..4d34be94d166 100644 --- a/drivers/regulator/mt6360-regulator.c +++ b/drivers/regulator/mt6360-regulator.c @@ -380,10 +380,8 @@ static int mt6360_regulator_irq_register(struct platform_device *pdev, const struct mt6360_irq_mapping *irq_desc = tbls + i; irq = platform_get_irq_byname(pdev, irq_desc->name); - if (irq < 0) { - dev_err(&pdev->dev, "Fail to get %s irq\n", irq_desc->name); + if (irq < 0) return irq; - } ret = devm_request_threaded_irq(&pdev->dev, irq, NULL, irq_desc->handler, 0, irq_desc->name, rdev); |