From: Benoit Parrot <bparrot@ti.com>
To: Yang Yingliang <yangyingliang@huawei.com>
Cc: <linux-kernel@vger.kernel.org>, <linux-media@vger.kernel.org>,
<mchehab@kernel.org>
Subject: Re: [PATCH -next] media: ti-vpe: sc: remove redundant dev_err call in sc_create()
Date: Thu, 1 Apr 2021 09:02:04 -0500 [thread overview]
Message-ID: <20210401140204.bikghitzypf7fraf@ti.com> (raw)
In-Reply-To: <20210401103015.1555941-1-yangyingliang@huawei.com>
Yang,
Thank you for the patch.
Yang Yingliang <yangyingliang@huawei.com> wrote on Thu [2021-Apr-01 18:30:15 +0800]:
> There is an error message within devm_ioremap_resource
> already, so remove the dev_err call to avoid redundant
> error message.
>
> Reported-by: Hulk Robot <hulkci@huawei.com>
> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
> ---
> drivers/media/platform/ti-vpe/sc.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/media/platform/ti-vpe/sc.c b/drivers/media/platform/ti-vpe/sc.c
> index 98f95082a6fd..0202d278523f 100644
> --- a/drivers/media/platform/ti-vpe/sc.c
> +++ b/drivers/media/platform/ti-vpe/sc.c
> @@ -294,10 +294,8 @@ struct sc_data *sc_create(struct platform_device *pdev, const char *res_name)
> }
>
> sc->base = devm_ioremap_resource(&pdev->dev, sc->res);
> - if (IS_ERR(sc->base)) {
> - dev_err(&pdev->dev, "failed to ioremap\n");
> + if (IS_ERR(sc->base))
> return ERR_CAST(sc->base);
> - }
Reviewed-by: Benoit Parrot <bparrot@ti.com>
>
> return sc;
> }
> --
> 2.25.1
>
prev parent reply other threads:[~2021-04-02 8:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-01 10:30 [PATCH -next] media: ti-vpe: sc: remove redundant dev_err call in sc_create() Yang Yingliang
2021-04-01 14:02 ` Benoit Parrot [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=20210401140204.bikghitzypf7fraf@ti.com \
--to=bparrot@ti.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=yangyingliang@huawei.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