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>
Thu, 6 Apr 2023 02:42:41 +0000 (19:42 -0700)
commit2d55c16c0c54325bf15286cfa6ba6c268036b9e4
tree415822a2abc80d0897b69c0c3e9b03a4981fa3a6
parenta4de12a032fa6d0670aa0bb43a2bf9f812680d0f
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
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