mm/swapfile: remove needless request_queue NULL pointer check
authorXu Wang <vulab@iscas.ac.cn>
Fri, 5 Nov 2021 20:37:19 +0000 (13:37 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 6 Nov 2021 20:30:34 +0000 (13:30 -0700)
commit363dc512b666a235769482cc73869f899785a1f6
tree5c8ee2e1eef8bdcedd546033b26804ab2f23ad12
parent20b7fee738d65e50ca00e325ae27ee3efaa819f6
mm/swapfile: remove needless request_queue NULL pointer check

The request_queue pointer returned from bdev_get_queue() shall never be
NULL, so the null check is unnecessary, just remove it.

Link: https://lkml.kernel.org/r/20210917082111.33923-1-vulab@iscas.ac.cn
Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
Acked-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/swapfile.c