From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5D4D9C47080 for ; Mon, 31 May 2021 16:43:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3A0D761003 for ; Mon, 31 May 2021 16:43:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233862AbhEaQpZ (ORCPT ); Mon, 31 May 2021 12:45:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232588AbhEaQnX (ORCPT ); Mon, 31 May 2021 12:43:23 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3526C053A09 for ; Mon, 31 May 2021 08:05:11 -0700 (PDT) Received: from zn.tnic (p200300ec2f080f002c54d32600da041e.dip0.t-ipconnect.de [IPv6:2003:ec:2f08:f00:2c54:d326:da:41e]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 71ADF1EC04DE; Mon, 31 May 2021 17:05:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1622473510; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=UkzFANFQtQbvHOCkSdinM8TxCtsswQGkShM6HDIdWpw=; b=OhZwPS4XrsaRlocKjxCEqulTjVevFAHJ1n4oYZs1PlMky2rq/25jCUMmU6ufNxJOnvnAoK 6O/HG+wOwcYWJbN8th3wi47KPrK7e1hVcWIzx1vWhxxIbhKZEeX163aQa/igQ5Koe5R4VR nUMZ/AHlrq9fN7Sp2E8zgRDe3N0agjA= Date: Mon, 31 May 2021 17:05:08 +0200 From: Borislav Petkov To: Zhen Lei Cc: Shravan Kumar Ramani , Mauro Carvalho Chehab , Tony Luck , James Morse , Robert Richter , linux-edac Subject: Re: [PATCH 1/1] EDAC, mellanox: Remove redundant error printing in bluefield_edac_mc_probe() Message-ID: References: <20210511121856.5996-1-thunder.leizhen@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210511121856.5996-1-thunder.leizhen@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-edac@vger.kernel.org On Tue, May 11, 2021 at 08:18:56PM +0800, Zhen Lei wrote: > When devm_ioremap_resource() fails, a clear enough error message will be > printed by its subfunction __devm_ioremap_resource(). In every possible failure case or is there a case where an error won't be printed and keeping the dev_err() in the driver doesn't hurt at all? -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette