summaryrefslogtreecommitdiff
path: root/include/linux/swap_slots.h
diff options
context:
space:
mode:
authorMiaohe Lin <linmiaohe@huawei.com>2022-05-20 00:08:50 +0300
committerakpm <akpm@linux-foundation.org>2022-05-20 00:08:50 +0300
commitbc4a68adb151f08b50822158c7767f5726346370 (patch)
tree0c6a11e4d1c99aecd6632b3768b45bc2d72b6906 /include/linux/swap_slots.h
parentafba72b17139057aedf7eb2dfe5f6ea6700ab998 (diff)
downloadlinux-bc4a68adb151f08b50822158c7767f5726346370.tar.xz
mm/swap: remove unneeded return value of free_swap_slot
The return value of free_swap_slot is always 0 and also ignored now. Remove it to clean up the code. Link: https://lkml.kernel.org/r/20220509131416.17553-5-linmiaohe@huawei.com Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> Reviewed-by: David Hildenbrand <david@redhat.com> Reviewed-by: Oscar Salvador <osalvador@suse.de> Cc: Alistair Popple <apopple@nvidia.com> Cc: David Howells <dhowells@redhat.com> Cc: Matthew Wilcox <willy@infradead.org> Cc: Naoya Horiguchi <naoya.horiguchi@nec.com> Cc: NeilBrown <neilb@suse.de> Cc: Peter Xu <peterx@redhat.com> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Vlastimil Babka <vbabka@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux/swap_slots.h')
-rw-r--r--include/linux/swap_slots.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/swap_slots.h b/include/linux/swap_slots.h
index 347f1a304190..15adfb8c813a 100644
--- a/include/linux/swap_slots.h
+++ b/include/linux/swap_slots.h
@@ -24,7 +24,7 @@ struct swap_slots_cache {
void disable_swap_slots_cache_lock(void);
void reenable_swap_slots_cache_unlock(void);
void enable_swap_slots_cache(void);
-int free_swap_slot(swp_entry_t entry);
+void free_swap_slot(swp_entry_t entry);
extern bool swap_slot_cache_enabled;