Linux EDAC development
 help / color / mirror / Atom feed
From: Borislav Petkov <bp@alien8.de>
To: Tang Bin <tangbin@cmss.chinamobile.com>
Cc: kristo@kernel.org, mchehab@kernel.org, tony.luck@intel.com,
	james.morse@arm.com, rric@kernel.org, linux-edac@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] EDAC/ti: Remove redundant error messages
Date: Thu, 7 Oct 2021 19:48:54 +0200	[thread overview]
Message-ID: <YV8zBqHzL7lcbQUQ@zn.tnic> (raw)
In-Reply-To: <20210811112626.27848-1-tangbin@cmss.chinamobile.com>

On Wed, Aug 11, 2021 at 07:26:26PM +0800, Tang Bin wrote:
> In the function ti_edac_probe, devm_ioremap_resource() and
> platform_get_irq() have already contains error message, so
> remove the redundant error messages.
> 
> Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
> ---
>  drivers/edac/ti_edac.c | 7 +------
>  1 file changed, 1 insertion(+), 6 deletions(-)
> 
> diff --git a/drivers/edac/ti_edac.c b/drivers/edac/ti_edac.c
> index 169f96e51..6971ded59 100644
> --- a/drivers/edac/ti_edac.c
> +++ b/drivers/edac/ti_edac.c
> @@ -245,11 +245,8 @@ static int ti_edac_probe(struct platform_device *pdev)
>  
>  	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
>  	reg = devm_ioremap_resource(dev, res);
> -	if (IS_ERR(reg)) {
> -		edac_printk(KERN_ERR, EDAC_MOD_NAME,
> -			    "EMIF controller regs not defined\n");
> +	if (IS_ERR(reg))
>  		return PTR_ERR(reg);
> -	}
>  
>  	layers[0].type = EDAC_MC_LAYER_ALL_MEM;
>  	layers[0].size = 1;
> @@ -281,8 +278,6 @@ static int ti_edac_probe(struct platform_device *pdev)
>  	error_irq = platform_get_irq(pdev, 0);
>  	if (error_irq < 0) {
>  		ret = error_irq;
> -		edac_printk(KERN_ERR, EDAC_MOD_NAME,
> -			    "EMIF irq number not defined.\n");
>  		goto err;
>  	}
>  
> -- 

Applied, thanks.

-- 
Regards/Gruss,
    Boris.

https://people.kernel.org/tglx/notes-about-netiquette

      reply	other threads:[~2021-10-07 17:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-11 11:26 [PATCH] EDAC/ti: Remove redundant error messages Tang Bin
2021-10-07 17:48 ` Borislav Petkov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YV8zBqHzL7lcbQUQ@zn.tnic \
    --to=bp@alien8.de \
    --cc=james.morse@arm.com \
    --cc=kristo@kernel.org \
    --cc=linux-edac@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=rric@kernel.org \
    --cc=tangbin@cmss.chinamobile.com \
    --cc=tony.luck@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox