]> www.infradead.org Git - users/dwmw2/linux.git/commit
mm/mremap: remove goto from mremap_to()
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Fri, 18 Oct 2024 17:41:14 +0000 (13:41 -0400)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 7 Nov 2024 04:11:16 +0000 (20:11 -0800)
commit4b6b0a5188c219cf40d6e863e55e2a5ca39e51cd
tree579cc2496a8baa84388b747040f87505eb00a392
parent58f1069311db63ed9f330fdba4418a13ab49d843
mm/mremap: remove goto from mremap_to()

mremap_to() has a goto label at the end that doesn't unwind anything.
Removing the label makes the code cleaner.

This commit also adds documentation to the function.

Link: https://lkml.kernel.org/r/20241018174114.2871880-3-Liam.Howlett@oracle.com
Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
Reviewed-by: Pedro Falcato <pedro.falcato@gmail.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Jann Horn <jannh@google.com>
Cc: Jeff Xu <jeffxu@chromium.org>
Cc: Kefeng Wang <wangkefeng.wang@huawei.com>
Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: Qi Zheng <zhengqi.arch@bytedance.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/mremap.c