|
Prev: x86: simplify x86_mpparse dependency check
Next: x86: check command line when CONFIG_X86_MPPARSE is not set
From: Balbir Singh on 20 Jun 2008 11:10 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 <balbir(a)linux.vnet.ibm.com> --- 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |