From: Frank Rowand <frowand.list@gmail.com>
To: Ding Xiang <dingxiang@cmss.chinamobile.com>, robh+dt@kernel.org
Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] of: remove unneeded variable
Date: Wed, 8 Apr 2020 11:00:01 -0500 [thread overview]
Message-ID: <92c6b7e9-4d55-a5c3-8c7f-5611edeb55c9@gmail.com> (raw)
In-Reply-To: <1585562702-360-1-git-send-email-dingxiang@cmss.chinamobile.com>
On 3/30/20 5:05 AM, Ding Xiang wrote:
> rc is unneeded, just return 0.
of: of_detach_node() remove unneeded local return variable
>
> Signed-off-by: Ding Xiang <dingxiang@cmss.chinamobile.com>
> ---
> drivers/of/dynamic.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/of/dynamic.c b/drivers/of/dynamic.c
> index 08fd823..fe64430 100644
> --- a/drivers/of/dynamic.c
> +++ b/drivers/of/dynamic.c
> @@ -286,7 +286,6 @@ int of_detach_node(struct device_node *np)
> {
> struct of_reconfig_data rd;
> unsigned long flags;
> - int rc = 0;
>
> memset(&rd, 0, sizeof(rd));
> rd.dn = np;
> @@ -301,7 +300,7 @@ int of_detach_node(struct device_node *np)
>
> of_reconfig_notify(OF_RECONFIG_DETACH_NODE, &rd);
>
> - return rc;
> + return 0;
> }
> EXPORT_SYMBOL_GPL(of_detach_node);
>
>
Reviewed-by: Frank Rowand <frank.rowand@sony.com>
next prev parent reply other threads:[~2020-04-08 16:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-30 10:05 Ding Xiang
2020-04-08 16:00 ` Frank Rowand [this message]
2020-04-08 19:27 ` Frank Rowand
2020-04-10 17:13 ` Rob Herring
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=92c6b7e9-4d55-a5c3-8c7f-5611edeb55c9@gmail.com \
--to=frowand.list@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=dingxiang@cmss.chinamobile.com \
--cc=linux-kernel@vger.kernel.org \
--cc=robh+dt@kernel.org \
/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
all inboxes | Powered by JetHome®