diff mbox series

mm/hugetlb_cgroup: avoid useless return in void function

Message ID 20241122173558.20670-1-quic_pintu@quicinc.com (mailing list archive)
State New
Headers show
Series mm/hugetlb_cgroup: avoid useless return in void function | expand

Commit Message

Pintu Kumar Nov. 22, 2024, 5:35 p.m. UTC
The return statement at the end of void function is unnecessary.
Just remove it as part of cleanup.

Signed-off-by: Pintu Kumar <quic_pintu@quicinc.com>
---
 mm/hugetlb_cgroup.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/mm/hugetlb_cgroup.c b/mm/hugetlb_cgroup.c
index d8d0e665caed..8abe7151df21 100644
--- a/mm/hugetlb_cgroup.c
+++ b/mm/hugetlb_cgroup.c
@@ -936,7 +936,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[] = {