]> git.baikalelectronics.ru Git - kernel.git/commit
mm/swap_slots.c: remove always zero and unused return value of enable_swap_slots_cache()
authorMiaohe Lin <linmiaohe@huawei.com>
Tue, 13 Oct 2020 23:52:18 +0000 (16:52 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 14 Oct 2020 01:38:30 +0000 (18:38 -0700)
commit74cff3a2308c4c25da41cbdde8779e8d350be075
tree3694acdab30586bba0f7c7af86ba848fdc74871b
parenteeb89626a84f276ed17a144f0e15a3c86806a12f
mm/swap_slots.c: remove always zero and unused return value of enable_swap_slots_cache()

enable_swap_slots_cache() always return zero and its return value is just
ignored by the caller.  So make enable_swap_slots_cache() void.

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Link: https://lkml.kernel.org/r/20200924113554.50614-1-linmiaohe@huawei.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/swap_slots.h
mm/swap_slots.c