Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2285401pxp; Mon, 21 Mar 2022 15:54:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWLl1zpoOZ5caiJU2IbTBJXQbM2fkjYUfI1Ne85BH5BHoz4FIG6TtGaZiC92BemeLalBSW X-Received: by 2002:a05:6a00:2181:b0:4f6:f1b1:1ba7 with SMTP id h1-20020a056a00218100b004f6f1b11ba7mr26137484pfi.73.1647903251734; Mon, 21 Mar 2022 15:54:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647903251; cv=none; d=google.com; s=arc-20160816; b=CwRNsfOLa4+CLu+A00XWi3NoSPV/68sRQ8v3nVYrzLkYO9iij17os0HHkk2N/ancwi RgbWVxTXpps1cGKXNRai2rbJV7C5e3WEwvAG5RUcr2EM2XCwzcq1S0B8CvJMGGVQjb6m J1DYks4qinbJWAiSLYPk8VFcdqwLQfn2d1QlrTzKtiM4j24MC+2c/aiZhIgCdDs1wA1r EBYJSaGdIxypO6UXHsUcdz73Y7cEzR3fco+U3I8m24EXFkP6As4LX2jZ+CTaGuTpKOXf DsLBaOaUY0SzdMXG01N9DbgEz6cEJdEXAvjb2WLVX4q7QHSlAuyz8HzGEBdHllgUoRRZ NhWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=YLX11HH9sAcAfKPdzoTTqml/t4cpYTWRW+P6sGvwV9c=; b=anxMoWftGCEUHm8WLMfVGtFfqVmSsgD9Lu7WADK2ul5eDLQW3yL/VPP094O4LkPnh1 rNJXr4v1lMliVskRxhOpy9r3OEfWHvathkk5kn2XLlvCJT1ZqoYimR3kKDLH/Gd2zQ8J U6nJtkG/Tr6OqcbmD6e/WVhwoKY/pAjNmsiYbjyN9Baml/qBWFIx3XYs5UI30B74VBr8 fHWX+mSHniVGGkOujSwsNyaau5/DarJtJJiU0gSAG6YC2cE/dmR7ApbzuzACJDoddMC7 X6f+NtwF2C8e3w1b7gVXJC5wR4MEbGykPFLGvFAt9GJroxjb7obpKZW1NjAZYTB1PQH7 gYjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Bgv+FDLU; 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=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id p24-20020a63f458000000b003825c501619si7635770pgk.58.2022.03.21.15.54.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 15:54:11 -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=@kernel.org header.s=k20201202 header.b=Bgv+FDLU; 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=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DCEE24138B5; Mon, 21 Mar 2022 15:03:46 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349818AbiCUPLq (ORCPT + 99 others); Mon, 21 Mar 2022 11:11:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344832AbiCUPLp (ORCPT ); Mon, 21 Mar 2022 11:11:45 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EDBF2B7C78; Mon, 21 Mar 2022 08:10:19 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8989560F42; Mon, 21 Mar 2022 15:10:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C582EC340E8; Mon, 21 Mar 2022 15:10:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1647875418; bh=2NhbbdTteLjcJ8tMp9FedI8DJRaiJl0VuMgB1aUaD9A=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Bgv+FDLU4CzS47qsmq7TCpsMoQFGtqY2wumfl2GnWrdZN5+boxTTQa0iiHnLVpxzA USvTK7rxbCiZ1POJDK5EeERbqEDJITvwfvLSfxJoUJVg2ljNr6kNyV8owypt/eOX32 au1kBUttruGWZkztlmkLupiYmLfBh0ndAmo3oKoKz/esS+ZX7xXx15s86OoZLuSr2K bo7HKbei6wVDvyV83cB+/nRyOXuiuTMkps/WI1aqNi2FyHeJW7mLOVoIhGKi6hnjxW fJD1ZvoIaRHW7/Y0Z2drcN2NXKVJh/rmkNRZbYwZY3fMsEbBsoSdpL6gkHRPDlK7uh hAGB/rkIX8SPA== Message-ID: <79f5594f-2864-4df8-c04b-6d1c3f8a764c@kernel.org> Date: Mon, 21 Mar 2022 10:10:16 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH -next] EDAC/altera: Remove unnecessary print function dev_err() Content-Language: en-US To: Yang Li Cc: bp@alien8.de, mchehab@kernel.org, tony.luck@intel.com, james.morse@arm.com, rric@kernel.org, linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, Abaci Robot References: <20220317233722.109036-1-yang.lee@linux.alibaba.com> From: Dinh Nguyen In-Reply-To: <20220317233722.109036-1-yang.lee@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 On 3/17/22 18:37, Yang Li wrote: > The print function dev_err() is redundant because platform_get_irq() > already prints an error. > > Eliminate the follow coccicheck warnings: > ./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 > > Reported-by: Abaci Robot > Signed-off-by: Yang Li > --- > drivers/edac/altera_edac.c | 8 ++------ > 1 file changed, 2 insertions(+), 6 deletions(-) > > diff --git a/drivers/edac/altera_edac.c b/drivers/edac/altera_edac.c > index e7e8e624a436..47dc35938fa8 100644 > --- a/drivers/edac/altera_edac.c > +++ b/drivers/edac/altera_edac.c > @@ -2149,10 +2149,8 @@ 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"); > + if (edac->sb_irq < 0) > return edac->sb_irq; > - } > > irq_set_chained_handler_and_data(edac->sb_irq, > altr_edac_a10_irq_handler, > @@ -2184,10 +2182,8 @@ 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"); > + if (edac->db_irq < 0) > return edac->db_irq; > - } > irq_set_chained_handler_and_data(edac->db_irq, > altr_edac_a10_irq_handler, edac); > #endif Acked-by: Dinh Nguyen