Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753993Ab3HVHww (ORCPT ); Thu, 22 Aug 2013 03:52:52 -0400 Received: from e28smtp08.in.ibm.com ([122.248.162.8]:43352 "EHLO e28smtp08.in.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753652Ab3HVHwq (ORCPT ); Thu, 22 Aug 2013 03:52:46 -0400 Message-ID: <5215C345.9040309@linux.vnet.ibm.com> Date: Thu, 22 Aug 2013 15:52:37 +0800 From: Michael wang User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130804 Thunderbird/17.0.8 MIME-Version: 1.0 To: open list CC: Ingo Molnar , Peter Zijlstra , Andrew Morton , Al Viro , "Eric W. Biederman" , Oleg Nesterov , Srikar Dronamraju Subject: [PATCH 03/11] sched/cleanup: remove the extra parm of copy_flags() References: <5215C233.9060907@linux.vnet.ibm.com> In-Reply-To: <5215C233.9060907@linux.vnet.ibm.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-TM-AS-MML: No X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13082207-2000-0000-0000-00000D6A002C Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1461 Lines: 44 Parm 'clone_flags' has not been used, remove it to make code clean. CC: Andrew Morton CC: Al Viro CC: "Eric W. Biederman" CC: Oleg Nesterov CC: Srikar Dronamraju CC: Ingo Molnar CC: Peter Zijlstra Signed-off-by: Michael Wang --- kernel/fork.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/fork.c b/kernel/fork.c index 457945f..3c2d8fd 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -1070,7 +1070,7 @@ static int copy_signal(unsigned long clone_flags, struct task_struct *tsk) return 0; } -static void copy_flags(unsigned long clone_flags, struct task_struct *p) +static void copy_flags(struct task_struct *p) { unsigned long new_flags = p->flags; @@ -1223,7 +1223,7 @@ static struct task_struct *copy_process(unsigned long clone_flags, p->did_exec = 0; delayacct_tsk_init(p); /* Must remain after dup_task_struct() */ - copy_flags(clone_flags, p); + copy_flags(p); INIT_LIST_HEAD(&p->children); INIT_LIST_HEAD(&p->sibling); rcu_copy_process(p); -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/