aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorPintu Kumar <quic_pintu@quicinc.com>2024-11-22 23:05:58 +0530
committerAndrew Morton <akpm@linux-foundation.org>2025-01-13 22:40:34 -0800
commit3658cb16e243b3582bf5f84a68742268617cfbe6 (patch)
tree2c06bcc7539cd5abf9918e9b283c534af1eaf596
parentmm: mmap_lock: optimize mmap_lock tracepoints (diff)
downloadwireguard-linux-3658cb16e243b3582bf5f84a68742268617cfbe6.tar.xz
wireguard-linux-3658cb16e243b3582bf5f84a68742268617cfbe6.zip
mm/hugetlb_cgroup: avoid useless return in void function
The return statement at the end of void function is unnecessary. Just remove it as part of cleanup. Link: https://lkml.kernel.org/r/20241122173558.20670-1-quic_pintu@quicinc.com Signed-off-by: Pintu Kumar <quic_pintu@quicinc.com> Cc: Pintu Agarwal <pintu.ping@gmail.com> Cc: Shuah Khan <skhan@linuxfoundation.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-rw-r--r--mm/hugetlb_cgroup.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/mm/hugetlb_cgroup.c b/mm/hugetlb_cgroup.c
index e716c4671a15..89a8ad45a533 100644
--- a/mm/hugetlb_cgroup.c
+++ b/mm/hugetlb_cgroup.c
@@ -917,7 +917,6 @@ void hugetlb_cgroup_migrate(struct folio *old_folio, struct folio *new_folio)
set_hugetlb_cgroup_rsvd(new_folio, h_cg_rsvd);
list_move(&new_folio->lru, &h->hugepage_activelist);
spin_unlock_irq(&hugetlb_lock);
- return;
}
static struct cftype hugetlb_files[] = {