Re: [PATCH 1/1] mm: mmap: Remove unnecessary local variable

2020-12-29 Thread David Hildenbrand
On 22.12.20 11:32, Adrian Huang wrote: > From: Adrian Huang > > The local variable 'retval' is assigned just for once in __do_sys_brk(), > and the function returns the value of the local variable right after > the assignment. Remove unnecessary assignment and local variable > declaration. > > Si

Re: [PATCH 1/1] mm: mmap: Remove unnecessary local variable

2020-12-22 Thread Souptick Joarder
On Tue, Dec 22, 2020 at 4:03 PM Adrian Huang wrote: > > From: Adrian Huang > > The local variable 'retval' is assigned just for once in __do_sys_brk(), > and the function returns the value of the local variable right after > the assignment. Remove unnecessary assignment and local variable > decla

[PATCH 1/1] mm: mmap: Remove unnecessary local variable

2020-12-22 Thread Adrian Huang
From: Adrian Huang The local variable 'retval' is assigned just for once in __do_sys_brk(), and the function returns the value of the local variable right after the assignment. Remove unnecessary assignment and local variable declaration. Signed-off-by: Adrian Huang --- mm/mmap.c | 4 +--- 1 f