Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp277849imw; Thu, 14 Jul 2022 01:27:14 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sof9fy+lQ1CcFiGwFwnKRuu6KGCrOGU8UEF2zzCiQSBd4weJewq4GMPdymCnnWWrCVVDDf X-Received: by 2002:a17:907:738a:b0:72e:8510:6bfd with SMTP id er10-20020a170907738a00b0072e85106bfdmr4519604ejc.688.1657787234293; Thu, 14 Jul 2022 01:27:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657787234; cv=none; d=google.com; s=arc-20160816; b=Pj5S+B6rR9fPvCj3RANxO+rst+auJGpyWvGvr3P6TX3R6UCYDgxnw/Fe8RO9QRvmGx JiT8qV9yQa4b20N2wwfU8WZXi5HGFHHi+sXo4dljTVgtDLgxKvxBB33kncgssVPWGjpc 12gVmJj54bR6+Rf907o5mBOfMlqeHnD6suY9yhmcL77zrwyfb+jXHD1UhyJb7LRbz328 h2GmjVEkbdw0kyYhydEHkvdlZXeib/6dKFiQWqcFs0w06bvHlin2WNn1ppfaTzaNNEu4 IYi8Eno70gYsRs8Jy68OHiV/EmDNmYMivy605B2sLb+ysZz+Zh+s9JKZvnC3ou129Dzt 8rqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=xGOj6qdAlW2u3OGPvE72zLb6uunUj6I05pui3euWnbs=; b=cKCo61avfVKnqc90JosMDVfILJ4YeJh/ErQD7QBPHSfEg6x+tRiHhvO/Yz448PdvrG x0XGCCxQv2pzlf+IG/2ONPopJ62BnLhUZHgInCHd9IfpAuIron4vbUu/H4QIQKAMPPEh pVEOP451kAdsRV3DK+utsqcowernkVM9f73LIUJSxUufD+nWyHEYf0Lb5aP++BtqCkKV soINLKhGL6MpJuk5zrj7SVWhCMM6HsmuZpNbfisacXHR6mTgl5aPr/JtQK0u+ISqgUmW EIOs9RW87Vme/R9YqG4de2OOawLqV6/rMYESL4xgo62z65LJ06vNsLRx4Ha2V8MIFyVk 1f4g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f24-20020a056402329800b0043a897d1de2si1487421eda.128.2022.07.14.01.26.45; Thu, 14 Jul 2022 01:27:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236782AbiGNHXC (ORCPT + 99 others); Thu, 14 Jul 2022 03:23:02 -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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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) -- 2.20.1.7.g153144c