* [PATCH] mm/hugetlb_cgroup: avoid useless return in void function
@ 2024-11-22 17:35 Pintu Kumar
0 siblings, 0 replies; only message in thread
From: Pintu Kumar @ 2024-11-22 17:35 UTC (permalink / raw)
To: akpm, quic_pintu, linux-mm, linux-kernel; +Cc: skhan, pintu.ping
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 --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[] = {
--
2.17.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-11-22 17:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-22 17:35 [PATCH] mm/hugetlb_cgroup: avoid useless return in void function Pintu Kumar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox