From: Gangadhar Vukkesala <gangs.freelancer@gmail.com>
To: akpm@linux-foundation.org, oleg@redhat.com, viro@zeniv.linux.org.uk
Cc: linux-kernel@vger.kernel.org,
Gangadhar Vukkesala <gangs.freelancer@gmail.com>
Subject: [PATCH] kernel: removed unnecessary initialization of static variable
Date: Sun, 21 Dec 2014 09:09:05 +0530 [thread overview]
Message-ID: <1419133145-5137-1-git-send-email-gangs.freelancer@gmail.com> (raw)
Removed unnecessary initialization of static variable "zero" to 0
in pid_namespace.c as default value of static variable is 0.
This issue was found when running checkpatch.pl script on pid_namespace.c.
Signed-off-by: Gangadhar Vukkesala <gangs.freelancer@gmail.com>
---
kernel/pid_namespace.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/pid_namespace.c b/kernel/pid_namespace.c
index a65ba13..f21eb3f 100644
--- a/kernel/pid_namespace.c
+++ b/kernel/pid_namespace.c
@@ -290,7 +290,7 @@ static int pid_ns_ctl_handler(struct ctl_table *table, int write,
}
extern int pid_max;
-static int zero = 0;
+static int zero;
static struct ctl_table pid_ns_ctl_table[] = {
{
.procname = "ns_last_pid",
--
Gangadhar Vukkesala
next reply other threads:[~2014-12-21 3:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-21 3:39 Gangadhar Vukkesala [this message]
2014-12-21 7:21 ` Jeremiah Mahler
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=1419133145-5137-1-git-send-email-gangs.freelancer@gmail.com \
--to=gangs.freelancer@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=oleg@redhat.com \
--cc=viro@zeniv.linux.org.uk \
/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®