From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755878AbdC1UqI (ORCPT ); Tue, 28 Mar 2017 16:46:08 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:33269 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754586AbdC1UqG (ORCPT ); Tue, 28 Mar 2017 16:46:06 -0400 From: Arushi Singhal To: outreachy-kernel@googlegroups.com Cc: linux-kernel@vger.kernel.org, Arushi Singhal Subject: [PATCH 5/5] kernel: pid_namespace.c: Do not initialise statics to 0. Date: Wed, 29 Mar 2017 02:15:06 +0530 Message-Id: <20170328204506.16316-6-arushisinghal19971997@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170328204506.16316-1-arushisinghal19971997@gmail.com> References: <20170328204506.16316-1-arushisinghal19971997@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Do not initialise statics to 0. static variable by default initialise to 0,so no need to explicite initialisation. This issue was found by checkpatch. Signed-off-by: Arushi Singhal --- 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 be35c2fe725f..1bfbee50177b 100644 --- a/kernel/pid_namespace.c +++ b/kernel/pid_namespace.c @@ -314,7 +314,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", -- 2.11.0