]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: ccp - Remove manual check and set of dma_mask pointer
authorTom Lendacky <thomas.lendacky@amd.com>
Tue, 26 May 2015 18:06:24 +0000 (13:06 -0500)
committerSomasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
Thu, 24 Aug 2017 17:52:32 +0000 (10:52 -0700)
commitcc9ae37518859925d12f316a809f85892e85fe73
tree82b1779c7a2d8a45193b3d30503f4487d8e12e7f
parentc41fbaa1f545a381a48939857fdbc60504e8e92c
crypto: ccp - Remove manual check and set of dma_mask pointer

Orabug: 26644685

The underlying device support will set the device dma_mask pointer
if DMA is set up properly for the device.  Remove the check for and
assignment of dma_mask when it is null. Instead, just error out if
the dma_set_mask_and_coherent function fails because dma_mask is null.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
(cherry picked from commit d921620e03c58bd83c4b345e36a104988d697f0d)
Signed-off-by: Somasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
drivers/crypto/ccp/ccp-platform.c