summaryrefslogtreecommitdiff
path: root/mm/compaction.c
diff options
context:
space:
mode:
authorKemeng Shi <shikemeng@huaweicloud.com>2023-08-04 19:04:53 +0800
committerAndrew Morton <akpm@linux-foundation.org>2023-08-21 13:37:43 -0700
commitf82024cbfa3a410d947b588658949a8a391da8a7 (patch)
treef0341ca0850423a92342e399d283df53ec86ad9c /mm/compaction.c
parentc3750cc7725af8da06f2f36ddce7adc52a3a51d6 (diff)
mm/compaction: remove unnecessary return for void function
Remove unnecessary return for void function Link: https://lkml.kernel.org/r/20230804110454.2935878-8-shikemeng@huaweicloud.com Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com> Reviewed-by: David Hildenbrand <david@redhat.com> Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com> Cc: Mel Gorman <mgorman@techsingularity.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/compaction.c')
-rw-r--r--mm/compaction.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/mm/compaction.c b/mm/compaction.c
index d0d3fea64b40..91a9dfa41ef4 100644
--- a/mm/compaction.c
+++ b/mm/compaction.c
@@ -1444,8 +1444,6 @@ fast_isolate_around(struct compact_control *cc, unsigned long pfn)
/* Skip this pageblock in the future as it's full or nearly full */
if (start_pfn == end_pfn)
set_pageblock_skip(page);
-
- return;
}
/* Search orders in round-robin fashion */
@@ -2898,7 +2896,7 @@ int compaction_register_node(struct node *node)
void compaction_unregister_node(struct node *node)
{
- return device_remove_file(&node->dev, &dev_attr_compact);
+ device_remove_file(&node->dev, &dev_attr_compact);
}
#endif /* CONFIG_SYSFS && CONFIG_NUMA */