]> git.baikalelectronics.ru Git - kernel.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)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 27 May 2015 09:51:54 +0000 (17:51 +0800)
commit617ea8a54c3da5e9cae27d8551df71f73c15d8a4
treeaa59f7f680ef3cfbf1b4afd9e8d1ef60b22081e7
parent5841d2da20917ec0b9f62b52f129c1ab93906c91
crypto: ccp - Remove manual check and set of dma_mask pointer

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>
drivers/crypto/ccp/ccp-platform.c