[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <924a6012-985e-b22d-6f85-e9eb3f03e88b@samsung.com>
Date: Mon, 6 Apr 2020 09:00:20 +0900
From: Chanwoo Choi <cw00.choi@...sung.com>
To: Markus Elfring <Markus.Elfring@....de>,
linux-tegra@...r.kernel.org, linux-pm@...r.kernel.org,
Dmitry Osipenko <digetx@...il.com>,
Jonathan Hunter <jonathanh@...dia.com>,
Kyungmin Park <kyungmin.park@...sung.com>,
MyungJoo Ham <myungjoo.ham@...sung.com>,
Thierry Reding <thierry.reding@...il.com>
Cc: LKML <linux-kernel@...r.kernel.org>,
kernel-janitors@...r.kernel.org,
Tang Bin <tangbin@...s.chinamobile.com>
Subject: Re: [PATCH] PM / devfreq: tegra30: Delete an error message in
tegra_devfreq_probe()
On 4/5/20 3:45 AM, Markus Elfring wrote:
> From: Markus Elfring <elfring@...rs.sourceforge.net>
> Date: Sat, 4 Apr 2020 20:34:02 +0200
>
> The function “platform_get_irq” can log an error already.
> Thus omit a redundant message for the exception handling in the
> calling function.
>
> This issue was detected by using the Coccinelle software.
>
> Signed-off-by: Markus Elfring <elfring@...rs.sourceforge.net>
> ---
> drivers/devfreq/tegra30-devfreq.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/devfreq/tegra30-devfreq.c b/drivers/devfreq/tegra30-devfreq.c
> index 28b2c7ca416e..93e6f4b25b04 100644
> --- a/drivers/devfreq/tegra30-devfreq.c
> +++ b/drivers/devfreq/tegra30-devfreq.c
> @@ -807,10 +807,9 @@ static int tegra_devfreq_probe(struct platform_device *pdev)
> }
>
> err = platform_get_irq(pdev, 0);
> - if (err < 0) {
> - dev_err(&pdev->dev, "Failed to get IRQ: %d\n", err);
> + if (err < 0)
> return err;
> - }
> +
> tegra->irq = err;
>
> irq_set_status_flags(tegra->irq, IRQ_NOAUTOEN);
> --
> 2.26.0
>
>
>
Applied it. Thanks.
--
Best Regards,
Chanwoo Choi
Samsung Electronics
Powered by blists - more mailing lists