]> git.baikalelectronics.ru Git - kernel.git/commit
mm/mmap.c: remove unnecessary local variable
authorAdrian Huang <ahuang12@lenovo.com>
Wed, 24 Feb 2021 20:04:29 +0000 (12:04 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 24 Feb 2021 21:38:30 +0000 (13:38 -0800)
commitdcca3073c1d98f141f1f6587f048c32fe4a76018
treee9856e9080381a75dccd59039d40689fd775bbd7
parentd6f53b50899f62d6d017329c3d3a612af0c9a851
mm/mmap.c: remove unnecessary local variable

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.

Link: https://lkml.kernel.org/r/20201222103249.30683-1-adrianhuang0701@gmail.com
Signed-off-by: Adrian Huang <ahuang12@lenovo.com>
Acked-by: Souptick Joarder <jrdr.linux@gmail.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/mmap.c