]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dmapool: remove checks for dev == NULL
authorTony Battersby <tonyb@cybernetics.com>
Thu, 26 Jan 2023 21:51:15 +0000 (13:51 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 10 Feb 2023 23:36:03 +0000 (15:36 -0800)
commit58f923f407b2860ae5efb61ab45542adadeae7cb
treea41b4367d4ebbe6aa650a4713db4557771803178
parent48522b153dc2c50363f931a7a5e897d977036eb8
dmapool: remove checks for dev == NULL

dmapool originally tried to support pools without a device because
dma_alloc_coherent() supports allocations without a device.  But nobody
ended up using dma pools without a device, and trying to do so will result
in an oops.  So remove the checks for pool->dev == NULL since they are
unneeded bloat.

[kbusch@kernel.org: add check for null dev on create]
Link: https://lkml.kernel.org/r/20230126215125.4069751-3-kbusch@meta.com
Signed-off-by: Tony Battersby <tonyb@cybernetics.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Cc: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/dmapool.c