Messages in this thread Patch in this message | | | From | Kemeng Shi <> | Subject | [PATCH v2 7/8] mm/compaction: remove unnecessary return for void function | Date | Wed, 2 Aug 2023 17:37:40 +0800 |
| |
Remove unnecessary return for void function
Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com> Reviewed-by: David Hildenbrand <david@redhat.com> Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com> --- mm/compaction.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/mm/compaction.c b/mm/compaction.c index 5581e4cccac5..a1cc327d1b32 100644 --- a/mm/compaction.c +++ b/mm/compaction.c @@ -1423,8 +1423,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 */ @@ -2878,7 +2876,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 */ -- 2.30.0
| |