Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp753170pxb; Fri, 22 Apr 2022 10:24:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7TrDHjwFtAEcFQgMPxmQZeBFK72Or4hBGIEtDQxLNCX83ygru+kmPX+oIPq/4Geh+WI/C X-Received: by 2002:a17:90b:4c0f:b0:1d2:da:874d with SMTP id na15-20020a17090b4c0f00b001d200da874dmr17613195pjb.3.1650648280883; Fri, 22 Apr 2022 10:24:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650648280; cv=none; d=google.com; s=arc-20160816; b=sCmI7sGN42dsh/VfAw6jr+suHRJsO1NPDSysiM7zCS27Gi0E0jEwPW/TlTuHp28PHL R1hKjG3uOhTDI1rf5MJU3hlGVYM8u2aINd0Bh8IljYSSmIUSJz0Lz/Hw3AEerL5X7a20 pLOCWkohJOamLDSvgmzZVMU6Piesd/dOtJH3a6QDPrH14LsEI1zSvdNBGVCXx+g2wqrO XqFkc6/SzGx4fOB+4Ga7FBV6nAwgjpCESqBbllRBJYo7oOMBiG4R7pn7uyJWicGdXuiB 2BJEeVo+KvBTmTToBbDBnAyjvC3RKi7oPiklVTrtggpOJJFbva0oEh4KbWgbi0M+dPQY r9GA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:content-disposition :content-transfer-encoding:mime-version:in-reply-to:references:cc :user-agent:date:subject:to:from:dkim-signature; bh=T+UJhpf6iwfqO+KD/Gn6n7F7lGzmkVfknCJtUCxzGTs=; b=FDa9c8UmHcBZd/zM8vrpqJFLZpWXmAak6D1/3pd26/pX5uaa3KXABJc5lRGIu51DUY yRiCX1ebiHBVYGUrJN4wqVCo9yX0cQvxhlGJx7ZlRsnnf/r4wkVfRQw5QWdJp6GruUrb Oilh2KF5AmVkzO+Fh+i9eZKsDueifhuuOGenJJqbxFQqjo+D+G2K2Ne2mJD6vjqcg/jJ F/Jrv6rbcGA3k8cywc3q7PDTHLcFS51ASl6FQ+B8whlU1N0Uby7yiTCb3W/hPtc+FXEE NNZBVRxx8KryIimAqFTuRgPabeO8liVbJi530Mwwa8twJgwJyJK6DDueiw2DV5hLWyho MOkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmp.felk.cvut.cz header.s=felkmail header.b=LvUqvG4h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cmp.felk.cvut.cz Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id l12-20020a170903244c00b00155e8c68779si9224346pls.601.2022.04.22.10.24.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 10:24:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@cmp.felk.cvut.cz header.s=felkmail header.b=LvUqvG4h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cmp.felk.cvut.cz Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A6020B6D16; Fri, 22 Apr 2022 10:18:29 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1441875AbiDUVUV (ORCPT + 99 others); Thu, 21 Apr 2022 17:20:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349339AbiDUVUT (ORCPT ); Thu, 21 Apr 2022 17:20:19 -0400 Received: from mailgw.felk.cvut.cz (mailgw.felk.cvut.cz [147.32.82.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 343504BFFF; Thu, 21 Apr 2022 14:17:26 -0700 (PDT) Received: from mailgw.felk.cvut.cz (localhost.localdomain [127.0.0.1]) by mailgw.felk.cvut.cz (Proxmox) with ESMTP id B5A9C30B2946; Thu, 21 Apr 2022 23:16:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= cmp.felk.cvut.cz; h=cc:cc:content-transfer-encoding:content-type :content-type:date:from:from:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=felkmail; bh=T+UJh pf6iwfqO+KD/Gn6n7F7lGzmkVfknCJtUCxzGTs=; b=LvUqvG4hGglewdm9FVTmB 9HmYxnXZy+jTMXLuFwNUdqGKSLfjTHAk8LRKPqMwaAaQK+urCZhFd5PWKRzeeYUw zLpmRpcF4nWzHbf8I4icqltXFDZEZftZsywK7wcTZO8gViboDYQBpGyeHoRYCo5X jthqsP2Zql35RUjeDfrk+HkWleFnebyO5BEo/JZNXR8ju4cIB4VDe4+xXyoI3zhF m98SyDLGB+cLQpqwq/EUXk9NabJiyOIpcfBr24LZ+y0XP/BEipGhiIx6Jha/QsAd h/fPijFzTnmvKr2SL7+/wJE0FTdzHazwRCZEV83ZhWa3M+YUBwNCr9vCN4rQpeEJ g== Received: from cmp.felk.cvut.cz (haar.felk.cvut.cz [147.32.84.19]) by mailgw.felk.cvut.cz (Proxmox) with ESMTPS id 54AFB30B2943; Thu, 21 Apr 2022 23:16:54 +0200 (CEST) Received: from haar.felk.cvut.cz (localhost [127.0.0.1]) by cmp.felk.cvut.cz (8.14.0/8.12.3/SuSE Linux 0.6) with ESMTP id 23LLGsXX026471; Thu, 21 Apr 2022 23:16:54 +0200 Received: (from pisa@localhost) by haar.felk.cvut.cz (8.14.0/8.13.7/Submit) id 23LLGrIN026468; Thu, 21 Apr 2022 23:16:53 +0200 X-Authentication-Warning: haar.felk.cvut.cz: pisa set sender to pisa@cmp.felk.cvut.cz using -f From: Pavel Pisa To: Jiapeng Chong Subject: Re: [PATCH] can: ctucanfd: Remove unnecessary print function dev_err() Date: Thu, 21 Apr 2022 23:16:53 +0200 User-Agent: KMail/1.9.10 Cc: ondrej.ille@gmail.com, wg@grandegger.com, mkl@pengutronix.de, davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Abaci Robot References: <20220421203242.7335-1-jiapeng.chong@linux.alibaba.com> In-Reply-To: <20220421203242.7335-1-jiapeng.chong@linux.alibaba.com> X-KMail-QuotePrefix: > MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <202204212316.53141.pisa@cmp.felk.cvut.cz> X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE autolearn=unavailable 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 Thanks for checking On Thursday 21 of April 2022 22:32:42 Jiapeng Chong wrote: > The print function dev_err() is redundant because platform_get_irq() > already prints an error. > > Eliminate the follow coccicheck warnings: > > ./drivers/net/can/ctucanfd/ctucanfd_platform.c:67:2-9: line 67 is > redundant because platform_get_irq() already prints an error. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong Acked-by: Pave Pisa > drivers/net/can/ctucanfd/ctucanfd_platform.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/net/can/ctucanfd/ctucanfd_platform.c > b/drivers/net/can/ctucanfd/ctucanfd_platform.c index > 5e4806068662..89d54c2151e1 100644 > --- a/drivers/net/can/ctucanfd/ctucanfd_platform.c > +++ b/drivers/net/can/ctucanfd/ctucanfd_platform.c > @@ -64,7 +64,6 @@ static int ctucan_platform_probe(struct platform_device > *pdev) } > irq = platform_get_irq(pdev, 0); > if (irq < 0) { > - dev_err(dev, "Cannot find interrupt.\n"); > ret = irq; > goto err; > }