]> git.baikalelectronics.ru Git - kernel.git/commit
mm/mmap.c: remove some redundancy in arch_get_unmapped_area_topdown()
authorYang Fan <nullptr.cpp@gmail.com>
Tue, 5 Mar 2019 23:46:16 +0000 (15:46 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 6 Mar 2019 05:07:17 +0000 (21:07 -0800)
commit42a611d69f5230354c906ac0149df27bd34f60a6
treeff2ca4ecc9141b984bc1c59af97b84543087df74
parent84a2fa6703922f1ba8733cf8378bae64bfedfcc2
mm/mmap.c: remove some redundancy in arch_get_unmapped_area_topdown()

The variable 'addr' is redundant in arch_get_unmapped_area_topdown(),
just use parameter 'addr0' directly.  Then remove the const qualifier of
the parameter, and change its name to 'addr'.

And in according with other functions, remove the const qualifier of all
other no-pointer parameters in function arch_get_unmapped_area_topdown().

Link: http://lkml.kernel.org/r/20190127041112.25599-1-nullptr.cpp@gmail.com
Signed-off-by: Yang Fan <nullptr.cpp@gmail.com>
Reviewed-by: Mike Rapoport <rppt@linux.ibm.com>
Cc: William Kucharski <william.kucharski@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/mmap.c