From: Rob Herring <robh+dt@kernel.org>
To: Saurabh Sengar <saurabh.truth@gmail.com>
Cc: Frank Rowand <frowand.list@gmail.com>,
Grant Likely <grant.likely@linaro.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] drivers: of: removing assignment of 0 to static variable
Date: Fri, 30 Oct 2015 13:30:34 -0500 [thread overview]
Message-ID: <CAL_JsqLGCJkw-YmxQ5TUpy880CYnZbZRqxpme3vuHNdXvqC1hA@mail.gmail.com> (raw)
In-Reply-To: <1445917321-5225-1-git-send-email-saurabh.truth@gmail.com>
On Mon, Oct 26, 2015 at 10:42 PM, Saurabh Sengar
<saurabh.truth@gmail.com> wrote:
> no need to initialise static variable with 0, hence correcting it.
>
> Signed-off-by: Saurabh Sengar <saurabh.truth@gmail.com>
Applied. Thanks.
Rob
> ---
> drivers/of/fdt.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c
> index 6e82bc42..63699dd 100644
> --- a/drivers/of/fdt.c
> +++ b/drivers/of/fdt.c
> @@ -184,7 +184,7 @@ static void * unflatten_dt_node(const void *blob,
> struct property *pp, **prev_pp = NULL;
> const char *pathp;
> unsigned int l, allocl;
> - static int depth = 0;
> + static int depth;
> int old_depth;
> int offset;
> int has_name = 0;
> --
> 1.9.1
>
prev parent reply other threads:[~2015-10-30 18:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-27 3:42 [PATCH] drivers: of: removing assignment of 0 to static variable Saurabh Sengar
2015-10-30 18:30 ` Rob Herring [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=CAL_JsqLGCJkw-YmxQ5TUpy880CYnZbZRqxpme3vuHNdXvqC1hA@mail.gmail.com \
--to=robh+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=frowand.list@gmail.com \
--cc=grant.likely@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=saurabh.truth@gmail.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;
as well as URLs for NNTP newsgroup(s).