diff options
author | Yang Li <yang.lee@linux.alibaba.com> | 2022-07-14 09:55:32 +0200 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2022-07-18 23:34:11 +0200 |
commit | 947bb0d16576bdac27f3355f268f51acfe29bfa7 (patch) | |
tree | 606dbc655a39879e5a06adf3ee15cf3f7f3dfcc6 /drivers/soc | |
parent | soc: qcom: socinfo: Fix the id of SA8540P SoC (diff) | |
download | linux-947bb0d16576bdac27f3355f268f51acfe29bfa7.tar.xz linux-947bb0d16576bdac27f3355f268f51acfe29bfa7.zip |
soc: qcom: icc-bwmon: Remove unnecessary print function dev_err()
Eliminate the follow coccicheck warning:
./drivers/soc/qcom/icc-bwmon.c:349:2-9: line 349 is redundant because platform_get_irq() already prints an error
Fixes: b9c2ae6cac40 ("soc: qcom: icc-bwmon: Add bandwidth monitoring driver")
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220714075532.104665-1-yang.lee@linux.alibaba.com
Diffstat (limited to 'drivers/soc')
-rw-r--r-- | drivers/soc/qcom/icc-bwmon.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/soc/qcom/icc-bwmon.c b/drivers/soc/qcom/icc-bwmon.c index bea3ea1de7a4..7f8aca533cd3 100644 --- a/drivers/soc/qcom/icc-bwmon.c +++ b/drivers/soc/qcom/icc-bwmon.c @@ -345,10 +345,8 @@ static int bwmon_probe(struct platform_device *pdev) } bwmon->irq = platform_get_irq(pdev, 0); - if (bwmon->irq < 0) { - dev_err(dev, "failed to acquire bwmon IRQ\n"); + if (bwmon->irq < 0) return bwmon->irq; - } ret = devm_pm_opp_of_add_table(dev); if (ret) |