]> www.infradead.org Git - users/jedix/linux-maple.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>
Fri, 1 Nov 2024 04:29:14 +0000 (21:29 -0700)
commitbd549c9c4f7af4d756b0c7a793d4fa89e9e2e636
tree997a84c5acebb1974918d98308704bd8e7f1b282
parentbf87d02038db537f13f3f485f5dc42f6e95521e6
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