From patchwork Thu Jul 14 07:22:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Li X-Patchwork-Id: 12917387 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BDD60C43334 for ; Thu, 14 Jul 2022 07:23:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229699AbiGNHXB (ORCPT ); Thu, 14 Jul 2022 03:23:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230379AbiGNHXA (ORCPT ); Thu, 14 Jul 2022 03:23:00 -0400 Received: from out30-133.freemail.mail.aliyun.com (out30-133.freemail.mail.aliyun.com [115.124.30.133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81C062A725; Thu, 14 Jul 2022 00:22:58 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R511e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04400;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---0VJIAMAe_1657783374; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VJIAMAe_1657783374) by smtp.aliyun-inc.com; Thu, 14 Jul 2022 15:22:54 +0800 From: Yang Li To: krzysztof.kozlowski@linaro.org Cc: agross@kernel.org, bjorn.andersson@linaro.org, konrad.dybcio@somainline.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next] soc: qcom: icc-bwmon: Remove unnecessary print function dev_err() Date: Thu, 14 Jul 2022 15:22:53 +0800 Message-Id: <20220714072253.63052-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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 Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/soc/qcom/icc-bwmon.c | 4 +--- 1 file changed, 1 insertion(+), 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)