From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759350AbYFTPCt (ORCPT ); Fri, 20 Jun 2008 11:02:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758622AbYFTPCO (ORCPT ); Fri, 20 Jun 2008 11:02:14 -0400 Received: from e2.ny.us.ibm.com ([32.97.182.142]:49911 "EHLO e2.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758615AbYFTPCM (ORCPT ); Fri, 20 Jun 2008 11:02:12 -0400 From: Balbir Singh To: Andrew Morton Cc: YAMAMOTO Takashi , Paul Menage , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Balbir Singh , KAMEZAWA Hiroyuki Date: Fri, 20 Jun 2008 20:31:52 +0530 Message-Id: <20080620150152.16094.76790.sendpatchset@localhost.localdomain> In-Reply-To: <20080620150132.16094.29151.sendpatchset@localhost.localdomain> References: <20080620150132.16094.29151.sendpatchset@localhost.localdomain> Subject: [2/2] memrlimit fix usage of tmp as a parameter name Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the variable tmp being used in write_strategy. This patch replaces tmp with val, the fact that it is an output parameter can be interpreted from the pass by reference. Signed-off-by: Balbir Singh --- mm/memrlimitcgroup.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff -puN mm/memrlimitcgroup.c~memrlimit-cgroup-simple-cleanup mm/memrlimitcgroup.c --- linux-2.6.26-rc5/mm/memrlimitcgroup.c~memrlimit-cgroup-simple-cleanup 2008-06-20 20:14:00.000000000 +0530 +++ linux-2.6.26-rc5-balbir/mm/memrlimitcgroup.c 2008-06-20 20:22:08.000000000 +0530 @@ -118,13 +118,13 @@ static u64 memrlimit_cgroup_read(struct cft->private); } -static int memrlimit_cgroup_write_strategy(char *buf, unsigned long long *tmp) +static int memrlimit_cgroup_write_strategy(char *buf, unsigned long long *val) { - *tmp = memparse(buf, &buf); + *val = memparse(buf, &buf); if (*buf != '\0') return -EINVAL; - *tmp = PAGE_ALIGN(*tmp); + *val = PAGE_ALIGN(*val); return 0; } _ -- Warm Regards, Balbir Singh Linux Technology Center IBM, ISTL