]> git.baikalelectronics.ru Git - kernel.git/commit
mm/page_io.c: remove useless out label in __swap_writepage()
authorMiaohe Lin <linmiaohe@huawei.com>
Tue, 13 Oct 2020 23:52:21 +0000 (16:52 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 14 Oct 2020 01:38:30 +0000 (18:38 -0700)
commit4a3b3b7acb815758da45c2c97714c8f979e64125
tree9f9026358ebada0890159884342e33dfbf8ee813
parent74cff3a2308c4c25da41cbdde8779e8d350be075
mm/page_io.c: remove useless out label in __swap_writepage()

The out label is only used in one place and return ret directly without
something like resource cleanup or lock release and so on.  So we should
remove this jump label and do some cleanup.

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