]> git.baikalelectronics.ru Git - kernel.git/commit
mm/swap: remove unneeded return value of free_swap_slot
authorMiaohe Lin <linmiaohe@huawei.com>
Thu, 19 May 2022 21:08:50 +0000 (14:08 -0700)
committerakpm <akpm@linux-foundation.org>
Thu, 19 May 2022 21:08:50 +0000 (14:08 -0700)
commita62588d564bff4803f8c55c64fee86b1f71d4623
tree0c6a11e4d1c99aecd6632b3768b45bc2d72b6906
parentb5dcf0b9008e9c7499b3d607a8a746d11e407d65
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>
include/linux/swap_slots.h
mm/swap_slots.c