dmapool: create/destroy cleanup
authorKeith Busch <kbusch@kernel.org>
Thu, 26 Jan 2023 21:51:25 +0000 (13:51 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 9 Jun 2023 23:25:17 +0000 (16:25 -0700)
commit9f297db35667021925b67e27d81463e38445041c
treed244f3c79a3fdc50841e3a190e232591eb873fb6
parentadef080382637f207c68e8ad633481d9b9332b63
dmapool: create/destroy cleanup

Set the 'empty' bool directly from the result of the function that
determines its value instead of adding additional logic.

Link: https://lkml.kernel.org/r/20230126215125.4069751-13-kbusch@meta.com
Fixes: 2d55c16c0c54 ("dmapool: create/destroy cleanup")
Signed-off-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Tony Battersby <tonyb@cybernetics.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/dmapool.c