Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp475377rwb; Sun, 6 Nov 2022 08:41:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf7cOuFLu+crvCVkykvk3cGTgTIPxOTLcDAnaxISuLWrZqHK9eGFDqEHzSiLzhZUXJeBXmb0 X-Received: by 2002:a05:6402:27d2:b0:462:8e41:569c with SMTP id c18-20020a05640227d200b004628e41569cmr4529842ede.191.1667752860301; Sun, 06 Nov 2022 08:41:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667752860; cv=none; d=google.com; s=arc-20160816; b=JFwBBbIbHLU9UrI9X5Oy08FwJ9cS3d6CJ8RiFzwu+bxAPMX6kKd9s2S6/0nWIA7Ryw 4YkIx62xyKN43CcXXYnVLw9Qi3Niw8TAwLVFvSqSbpG3yodZkMlyUxz4PwAMZzz0jEmY 7JvqLIITsgYLmr68hxshxPair8FiqGZ5MaVt3JFNHEClK3cp0HnYU9pOmsgZ10EiPE9L aJCRFet9IGSZgYGXI6dRVDrTU49oTfH8uD+a9HNMbULSVcuK9nNE/X0critg3HqK36Ub kWZn0Y5fIv/J2fpr5WHJHgKQG8JoF8W84K0nVHoCk198Suer2W6+wbXS1IpE6Ipzuwec FoxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=f2LfFw38VEdI/dVZdb7r81PINcw4FJQkOtSexlzHt0o=; b=hqtjCQIt+NEzdYUvjnmcx5tiVVCb0/4gOnlHNseYqWg667ni1aFrHHU1Krc/sdsACA Lb/BJbCzxgARWjlWV74o7iAXp4KlWw9yntTTxwbxEQUOJIeninQpxYKiLUn+zxOeu5/l /NyqrjVQNwdvGrX3YPdeqp1XP1Wj1ghb2QHOQAe9Z5nfom4svTRZtER50jkUqg4RGWtf PYYLJB1ctMpkr9QyDG2joNyLp3o7eqOxYnRe3JziZx53T2FyOXggvj1UXnE/pDxisXwZ 9gvdWZiZmmjgGyBgwEHKQGa+LPodBXKTNRbVzNghsXRokJqjJBPoWsebMcSXNIpGVMvj EtRA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k8-20020a17090627c800b0078c2c22d6cesi4674120ejc.70.2022.11.06.08.40.35; Sun, 06 Nov 2022 08:41:00 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230000AbiKFQ0L convert rfc822-to-8bit (ORCPT + 97 others); Sun, 6 Nov 2022 11:26:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229804AbiKFQ0K (ORCPT ); Sun, 6 Nov 2022 11:26:10 -0500 Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80EFB640F for ; Sun, 6 Nov 2022 08:26:09 -0800 (PST) Received: from omf17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id D682B1C652A; Sun, 6 Nov 2022 16:26:07 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf17.hostedemail.com (Postfix) with ESMTPA id 6487D17; Sun, 6 Nov 2022 16:25:20 +0000 (UTC) Message-ID: <72d228fc27951a7ba9e607d9fc433b3c64a801e3.camel@perches.com> Subject: Re: [PATCH] EDAC: altera: Remove unnecessary print function dev_err() From: Joe Perches To: wangkailong@jari.cn, bp@alien8.de, mchehab@kernel.org, tony.luck@intel.com, james.morse@arm.com, rric@kernel.org Cc: linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org Date: Sun, 06 Nov 2022 08:26:04 -0800 In-Reply-To: References: Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.44.4 (3.44.4-2.fc36) MIME-Version: 1.0 X-Rspamd-Queue-Id: 6487D17 X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, SPF_NONE,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Stat-Signature: nwagrj9zn7r167ofd8wyn3ziaqqiegqf X-Rspamd-Server: rspamout08 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX19NVUyMV9EgdLGR/NZuAAOGhLlXbrm2DI0= X-HE-Tag: 1667751920-668540 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 On Sun, 2022-11-06 at 21:33 +0800, wangkailong@jari.cn wrote: > Eliminate the follow coccicheck warning: > > ./drivers/edac/altera_edac.c:2153:2-9: line 2153 is redundant because > platform_get_irq() already prints an error > ./drivers/edac/altera_edac.c:2188:2-9: line 2188 is redundant because > platform_get_irq() already prints an error [] > diff --git a/drivers/edac/altera_edac.c b/drivers/edac/altera_edac.c [] > @@ -2150,7 +2150,6 @@ static int altr_edac_a10_probe(struct platform_device *pdev) > > edac->sb_irq = platform_get_irq(pdev, 0); > if (edac->sb_irq < 0) { > - dev_err(&pdev->dev, "No SBERR IRQ resource\n"); > return edac->sb_irq; > } Should delete now unnecessary braces too > > @@ -2185,7 +2184,6 @@ static int altr_edac_a10_probe(struct platform_device *pdev) > #else > edac->db_irq = platform_get_irq(pdev, 1); > if (edac->db_irq < 0) { > - dev_err(&pdev->dev, "No DBERR IRQ resource\n"); > return edac->db_irq; > } > irq_set_chained_handler_and_data(edac->db_irq,