usb-storage: use hcd_uses_dma to check for DMA capabilities
authorChristoph Hellwig <hch@lst.de>
Tue, 3 Sep 2019 08:46:12 +0000 (10:46 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Sep 2019 13:26:09 +0000 (15:26 +0200)
commitbf89015a54131253f963ee68b95461e6a3a4c462
tree7c247999a1747f93cc34573777fb436640784e7b
parent8838d9224f84cbe04979edb005365af236d39410
usb-storage: use hcd_uses_dma to check for DMA capabilities

The dma_mask on its own doesn't mean much.  Instead check for the actual
flag.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20190903084615.19161-4-hch@lst.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/storage/scsiglue.c