Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3939906imw; Mon, 18 Jul 2022 17:58:54 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uR343Os0G+Sk99Q9gifCjLjUH/U2c5IGXp3GGurCqv457SS/4s4WCuqCKbSBRM6DyTJKFh X-Received: by 2002:a05:6870:8a2b:b0:10b:fde5:29a0 with SMTP id p43-20020a0568708a2b00b0010bfde529a0mr16297332oaq.172.1658192334330; Mon, 18 Jul 2022 17:58:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658192334; cv=none; d=google.com; s=arc-20160816; b=j9qzLVaoRfmQ9qOdKJfR6br+tzBGb6uuqH1GqQny99mM2ACv2dC2TFKadRPyRQWjsT JR9eC82fRBWtnLwR1X5UNX9vYV4hBODdiaBIb5aRTxyzDbRFlXz1XmxJgyhuG1xEssrl NHFcEftONDsC7qxdInNAIrSZocksZlTn1OosKm3QOrjXb7xQTcsIepR04Z5DqNpR6v7R MsjPkiS2R7Qa8sSXbt1dD2l1lGvZKTaVRXo0izh5d4od4HqWcXTZX1mJj7wOwWxLRnD/ TprZiqnVWoyvAQQ8eQlpMlyUIumFG2BN/Pxr55zaolbg4nedqZDTX1a9c5RwkxfieQjK R2nw== 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=ypH8DFq7vnSRqo06VQhUiOV4sP9J8lrKJDPghCuo84E=; b=UJdC4R6tl3PuixnPVJ+hyeiJQX7zEE85AVOtmHiYeuhRxzUrtpTXuMsGrnLOXkD4MR lQHqYMxg6OOnC5AS89uuPG+MkawXo0hjCA5BN2ncGNzeMVvSzQSKX7QCGxEtnHDdkaHv HGRBtkEcpnbWOigNr7/9m3wr+6p4N2QpfyLJARGwOQh/7S709xJtKm+h6fNnPO0yRBrv 2Lpep70JxI1Sn38ON/3H/8M0ZYiX66zl/ux62GqJd2sd/GqKWzw43n1sXLQCZYlpbCNv fUK4a9+zf03YeTLOn6ai1iC8mvRCEpd1ZNS7KYaB0EQhGG60IUQVrI8TAIM6yiGdXnOk oKkw== 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 r2-20020a056870e98200b000fe3edccd2bsi12626123oao.148.2022.07.18.17.58.40; Mon, 18 Jul 2022 17:58:54 -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 S235355AbiGSAgI (ORCPT + 99 others); Mon, 18 Jul 2022 20:36:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229764AbiGSAgH (ORCPT ); Mon, 18 Jul 2022 20:36:07 -0400 Received: from out30-44.freemail.mail.aliyun.com (out30-44.freemail.mail.aliyun.com [115.124.30.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 818B06445; Mon, 18 Jul 2022 17:36:00 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R161e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046049;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0VJp4zmy_1658190957; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VJp4zmy_1658190957) by smtp.aliyun-inc.com; Tue, 19 Jul 2022 08:35:58 +0800 From: Yang Li To: rafael@kernel.org Cc: daniel.lezcano@linaro.org, amitk@kernel.org, rui.zhang@intel.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH -next] thermal/drivers/u8500: Remove unnecessary print function dev_err() Date: Tue, 19 Jul 2022 08:35:56 +0800 Message-Id: <20220719003556.74460-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, 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 The print function dev_err() is redundant because platform_get_irq() already prints an error. Eliminate the follow coccicheck warnings: ./drivers/thermal/db8500_thermal.c:162:2-9: line 162 is redundant because platform_get_irq() already prints an error ./drivers/thermal/db8500_thermal.c:176:2-9: line 176 is redundant because platform_get_irq() already prints an error Signed-off-by: Yang Li --- drivers/thermal/db8500_thermal.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/thermal/db8500_thermal.c b/drivers/thermal/db8500_thermal.c index ed40cfd9ab7d..121cf853e545 100644 --- a/drivers/thermal/db8500_thermal.c +++ b/drivers/thermal/db8500_thermal.c @@ -158,10 +158,8 @@ static int db8500_thermal_probe(struct platform_device *pdev) return -ENOMEM; low_irq = platform_get_irq_byname(pdev, "IRQ_HOTMON_LOW"); - if (low_irq < 0) { - dev_err(dev, "Get IRQ_HOTMON_LOW failed\n"); + if (low_irq < 0) return low_irq; - } ret = devm_request_threaded_irq(dev, low_irq, NULL, prcmu_low_irq_handler, IRQF_NO_SUSPEND | IRQF_ONESHOT, @@ -172,10 +170,8 @@ static int db8500_thermal_probe(struct platform_device *pdev) } high_irq = platform_get_irq_byname(pdev, "IRQ_HOTMON_HIGH"); - if (high_irq < 0) { - dev_err(dev, "Get IRQ_HOTMON_HIGH failed\n"); + if (high_irq < 0) return high_irq; - } ret = devm_request_threaded_irq(dev, high_irq, NULL, prcmu_high_irq_handler, IRQF_NO_SUSPEND | IRQF_ONESHOT, -- 2.20.1.7.g153144c