]> www.infradead.org Git - nvme.git/commitdiff
mm/compaction: remove unnecessary return for void function
authorKemeng Shi <shikemeng@huaweicloud.com>
Fri, 4 Aug 2023 11:04:53 +0000 (19:04 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 21 Aug 2023 20:37:43 +0000 (13:37 -0700)
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>
mm/compaction.c

index d0d3fea64b40892a48b8bb5b7de3ac7825535da9..91a9dfa41ef473d22d373847a498e4652ef68551 100644 (file)
@@ -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 */